mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
Pass --basetgz foo as separate arguments
This commit is contained in:
parent
43781fb79a
commit
b2a400fe50
@ -190,23 +190,23 @@ class pbuilder_dist:
|
|||||||
% result)
|
% result)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
if self.builder == 'pbuilder':
|
|
||||||
base = '--basetgz "%s-base.tgz"' % prefix
|
|
||||||
elif self.builder == 'cowbuilder':
|
|
||||||
base = '--basepath "%s-base.cow"' % prefix
|
|
||||||
else:
|
|
||||||
print >> stderr, 'Error: Unrecognized builder "%s".' % self.builder
|
|
||||||
exit(1)
|
|
||||||
|
|
||||||
arguments = [
|
arguments = [
|
||||||
'--%s' % self.operation,
|
'--%s' % self.operation,
|
||||||
base,
|
|
||||||
'--distribution', self.target_distro,
|
'--distribution', self.target_distro,
|
||||||
'--buildresult', result,
|
'--buildresult', result,
|
||||||
'--aptcache', '/var/cache/apt/archives/',
|
'--aptcache', '/var/cache/apt/archives/',
|
||||||
'--override-config',
|
'--override-config',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if self.builder == 'pbuilder':
|
||||||
|
arguments += ['--basetgz', prefix + '-base.tgz']
|
||||||
|
elif self.builder == 'cowbuilder':
|
||||||
|
arguments += ['--basepath', prefix + '-base.cow']
|
||||||
|
else:
|
||||||
|
print >> stderr, 'Error: Unrecognized builder "%s".' % self.builder
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
if self.logfile:
|
if self.logfile:
|
||||||
arguments += ['--logfile', self.logfile]
|
arguments += ['--logfile', self.logfile]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user