summaryrefslogtreecommitdiff
path: root/packages/bddeb
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-25 21:51:36 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-25 21:51:36 -0700
commitcb49d6d4a1b5699b5e0afca1ac15d7225a8728a4 (patch)
treea4f4c42c59967176dff6762985d48af4133f4f4c /packages/bddeb
parenteb9d93b3403b6289c1f5278eea8886fb7415a651 (diff)
downloadvyos-cloud-init-cb49d6d4a1b5699b5e0afca1ac15d7225a8728a4.tar.gz
vyos-cloud-init-cb49d6d4a1b5699b5e0afca1ac15d7225a8728a4.zip
Get the new builddeb working and fix the rules file
Diffstat (limited to 'packages/bddeb')
-rwxr-xr-xpackages/bddeb15
1 files changed, 13 insertions, 2 deletions
diff --git a/packages/bddeb b/packages/bddeb
index f2158d5b..1a9f13f3 100755
--- a/packages/bddeb
+++ b/packages/bddeb
@@ -15,7 +15,8 @@ def tmpdir():
try:
yield t
finally:
- shutil.rmtree(t)
+ pass
+ #shutil.rmtree(t)
def join(*paths):
@@ -56,6 +57,10 @@ def archive_code():
def main():
+ # cmd = ['apt-get', 'install', 'python-nose',
+ #'pyflakes', 'python-mocker', 'cdbs', 'debhelper']
+ # tiny_p(cmd)
+
with tmpdir() as td:
(revno, version, bname, archive_fn) = archive_code()
real_archive_fn = os.path.join(td, os.path.basename(archive_fn))
@@ -68,12 +73,18 @@ def main():
edir = join(td, bname)
shutil.move(edir, join(td, 'cloud-init'))
shutil.copytree('debian.trunk', join(td, 'cloud-init', 'debian'))
-
+
cmd = ['sed', '-i', '-e',"s,VERSION,%s," %(version),
'-e', "s,REVNO,bzr%s," % (revno),
join(td, 'cloud-init', 'debian', 'changelog')]
tiny_p(cmd)
+ # Seems to want an original tar ball
+ o_tar = "cloud-init_%s~bzr%s.orig.tar.gz" % (version, revno)
+ cmd = ['tar', '-czf', join(td, o_tar), '-C', join(td, 'cloud-init')]
+ cmd.extend(os.listdir(join(td, 'cloud-init')))
+ tiny_p(cmd)
+
ocwd = os.getcwd()
os.chdir(join(td, 'cloud-init'))
cmd = ['debuild']