Don't use --override-config with operations other than update. (LP: #409696)

This commit is contained in:
John S Gruber 2012-03-26 10:42:09 +02:00 committed by Stefano Rivera
parent c58f620d09
commit 6e7a7bac35
2 changed files with 7 additions and 1 deletions

4
debian/changelog vendored
View File

@ -12,6 +12,10 @@ ubuntu-dev-tools (0.140) UNRELEASED; urgency=low
* pbuilder-dist: Do not force default value for `--aptcache` argument
(LP: #956903)
[ John S Gruber ]
* Don't use --override-config with operations other than update.
(LP: #409696)
-- Daniel Hahler <ubuntu@thequod.de> Fri, 16 Mar 2012 16:21:00 +0100
ubuntu-dev-tools (0.139) unstable; urgency=low

View File

@ -218,9 +218,11 @@ class PbuilderDist:
'--%s' % self.operation,
'--distribution', self.target_distro,
'--buildresult', result,
'--override-config',
]
if self.operation == 'update':
arguments += ['--override-config']
if self.builder == 'pbuilder':
arguments += ['--basetgz', prefix + '-base.tgz']
elif self.builder == 'cowbuilder':