changeset 171:c0ea6cbb0fd2

Add "--debbuildopts -b" to "pbuilder build" command line to stop pbuilder from creating a source package. The .changes would otherwise contain references to that new source package instead of the one we passed to pbuilder. The checksums for the two source packages would be different so the .changes file would not match the source package that treepkg produces.
author Bernhard Herzog <bh@intevation.de>
date Mon, 23 Jun 2008 16:12:01 +0000
parents bfcb2bbf9a52
children 06af36f915f2
files test/mocksudopbuilder.py test/test_builder.py treepkg/builder.py
diffstat 3 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/mocksudopbuilder.py	Mon Jun 23 13:21:08 2008 +0000
+++ b/test/mocksudopbuilder.py	Mon Jun 23 16:12:01 2008 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/env python
-# Copyright (C) 2007 by Intevation GmbH
+# Copyright (C) 2007, 2008 by Intevation GmbH
 # Authors:
 # Bernhard Herzog <bh@intevation.de>
 #
@@ -44,6 +44,7 @@
     parser.add_option("--configfile")
     parser.add_option("--logfile")
     parser.add_option("--buildresult")
+    parser.add_option("--debbuildopts")
 
     opts, rest = parser.parse_args(args)
     return opts, rest
--- a/test/test_builder.py	Mon Jun 23 13:21:08 2008 +0000
+++ b/test/test_builder.py	Mon Jun 23 16:12:01 2008 +0000
@@ -162,6 +162,7 @@
                                  '--configfile', 'my_pbuilderrc',
                                  '--logfile', 'the_logfile',
                                  '--buildresult', binary_dir_name,
+                                 '--debbuildopts', '-b',
                                  'my_dsc_file'])
         self.failUnless(os.path.isdir(binary_dir_name))
 
@@ -183,6 +184,7 @@
                                  '--bindmounts', "/home/builder/pbuilder",
                                  '--logfile', 'the_logfile',
                                  '--buildresult', binary_dir_name,
+                                 '--debbuildopts', '-b',
                                  'my_dsc_file'])
         self.failUnless(os.path.isdir(binary_dir_name))
 
@@ -203,6 +205,7 @@
                                  '--extrapackages', "texinfo",
                                  '--logfile', 'the_logfile',
                                  '--buildresult', binary_dir_name,
+                                 '--debbuildopts', '-b',
                                  'my_dsc_file'])
         self.failUnless(os.path.isdir(binary_dir_name))
 
@@ -225,6 +228,7 @@
                                  '--configfile', 'my_pbuilderrc',
                                  '--logfile', 'the_logfile',
                                  '--buildresult', binary_dir_name,
+                                 '--debbuildopts', '-b',
                                  'my_dsc_file'])
         self.failUnless(os.path.isdir(binary_dir_name))
         self.failUnless(os.path.exists(env_test_file))
--- a/treepkg/builder.py	Mon Jun 23 13:21:08 2008 +0000
+++ b/treepkg/builder.py	Mon Jun 23 16:12:01 2008 +0000
@@ -124,7 +124,8 @@
             args.extend(["--extrapackages", pkg])
         run.call(cmdexpand("@rootcmd /usr/sbin/pbuilder build"
                            " --configfile $pbuilderrc @args"
-                           " --logfile $logfile --buildresult $bindir $dsc",
+                           " --logfile $logfile --buildresult $bindir"
+                           " --debbuildopts -b $dsc",
                            rootcmd=self.root_cmd, pbuilderrc=self.pbuilderrc,
                            logfile=logfile, bindir=binary_dir, dsc=dsc_file,
                            args=args),
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)