summaryrefslogtreecommitdiff
path: root/packages/bddeb
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-03-03 22:03:34 -0500
committerScott Moser <smoser@ubuntu.com>2016-03-03 22:03:34 -0500
commitd1c7de36c5d5042919ea2dec6bb5bd00688f9534 (patch)
tree3b6832b3378fe97ac0ec066db7c3fc3449903345 /packages/bddeb
parentcc92c32ea6e70de44ad0bd1e7c64f17e7fb23304 (diff)
downloadvyos-cloud-init-d1c7de36c5d5042919ea2dec6bb5bd00688f9534.tar.gz
vyos-cloud-init-d1c7de36c5d5042919ea2dec6bb5bd00688f9534.zip
packages/bddeb: copy all files in packages/debian/
just copy all the files that are there. makes adding files easier.
Diffstat (limited to 'packages/bddeb')
-rwxr-xr-xpackages/bddeb11
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/bddeb b/packages/bddeb
index c4efe264..c141b1ab 100755
--- a/packages/bddeb
+++ b/packages/bddeb
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
+import glob
import os
import shutil
import sys
@@ -105,11 +106,11 @@ def write_debian_folder(root, version, revno, pkgmap,
util.abs_join(deb_dir, 'rules'),
params={'python': python, 'pyver': pyver})
- # Just copy the following directly
- for base_fn in ['dirs', 'copyright', 'compat']:
- shutil.copy(util.abs_join(find_root(),
- 'packages', 'debian', base_fn),
- util.abs_join(deb_dir, base_fn))
+ # Just copy any other files directly (including .in)
+ pdeb_d = util.abs_join(find_root(), 'packages', 'debian')
+ for f in [os.path.join(pdeb_d, f) for f in os.listdir(pdeb_d)]:
+ if os.path.isfile(f):
+ shutil.copy(f, util.abs_join(deb_dir, os.path.basename(f)))
def main():