ubuntutools/test/example_package.py: Use dpkg-source directly instead of

dpkg-buildpackage to avoid running fakeroot inside fakeroot which leads
to a FTBFS on natty.
This commit is contained in:
Benjamin Drung 2011-02-12 16:38:14 +01:00
parent cfa69ccf43
commit c175f31ea7
2 changed files with 6 additions and 4 deletions

5
debian/changelog vendored
View File

@ -8,6 +8,9 @@ ubuntu-dev-tools (0.116) UNRELEASED; urgency=low
* *distro-info: Add a "created" column to the data.
* wrap-and-sort: Wrap and sort Build-Conflicts too.
* Move debian-keyring from Suggests to Recommends (LP: #717245).
* ubuntutools/test/example_package.py: Use dpkg-source directly instead of
dpkg-buildpackage to avoid running fakeroot inside fakeroot which leads
to a FTBFS on natty.
[ Stefano Rivera ]
* debian/copyright:
@ -26,7 +29,7 @@ ubuntu-dev-tools (0.116) UNRELEASED; urgency=low
* Use the new web_link attribute of LP objects instead of our own
translate_api_web() function.
-- Benjamin Drung <bdrung@debian.org> Sat, 12 Feb 2011 14:15:59 +0100
-- Benjamin Drung <bdrung@debian.org> Sat, 12 Feb 2011 16:35:33 +0100
ubuntu-dev-tools (0.115) unstable; urgency=low

View File

@ -54,9 +54,8 @@ class ExamplePackage(object):
def create(self):
"Build source package"
self.changelog_entry(create=True)
subprocess.check_call(('dpkg-buildpackage', '-rfakeroot', '-S',
'-uc', '-us'),
cwd=self.srcdir)
(basename, dirname) = os.path.split(self.srcdir)
subprocess.check_call(('dpkg-source', '-b', dirname), cwd=basename)
def cleanup(self):
"Remove srcdir"