summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-29 12:00:01 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-29 12:00:01 -0700
commit505aae53f2c2a9ca363691e710c89da82137955b (patch)
tree9ff31536eb8bc2daf1750d023869134d910b914c /packages
parent1951061b8673147630a9cf2cb7960fdc1d884569 (diff)
downloadvyos-cloud-init-505aae53f2c2a9ca363691e710c89da82137955b.tar.gz
vyos-cloud-init-505aae53f2c2a9ca363691e710c89da82137955b.zip
Add in the linking of the _all.deb with a symlink 'cloud-init_all.deb'
Diffstat (limited to 'packages')
-rwxr-xr-xpackages/bddeb14
1 files changed, 11 insertions, 3 deletions
diff --git a/packages/bddeb b/packages/bddeb
index 9015585b..b10f5a8e 100755
--- a/packages/bddeb
+++ b/packages/bddeb
@@ -133,9 +133,17 @@ def main():
cmd.extend(['-us', '-uc'])
util.subp(cmd, capture=capture)
- debname = "cloud-init_%s~%s-1_all.deb" % (version, revno)
- shutil.move(util.abs_join(tdir, debname), debname)
- print("Wrote out debian package %r" % (util.abs_join(debname)))
+ globs = []
+ globs.extend(glob.glob("%s/*.deb" %
+ (os.path.join(tdir))))
+ for fn in globs:
+ base_fn = os.path.basename(fn)
+ shutil.move(fn, base_fn)
+ print("Wrote out debian package %r" % (base_fn))
+ if fn.endswith('_all.deb'):
+ # Add in the local link
+ util.del_file('cloud-init_all.deb')
+ util.symlink(base_fn, 'cloud-init_all.deb')
return 0