summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-12-12 22:15:48 +0100
committerLars Wirzenius <liw@liw.fi>2015-12-12 22:15:48 +0100
commit8f4fce3b2353acee9aa50951c3901f45fe515f93 (patch)
tree7d2abb7a8fa16a7d9b4598ed5d98b8f0db3afe60
parent4c18166984231eb0419323487cee6f796f636ce6 (diff)
downloadick-8f4fce3b2353acee9aa50951c3901f45fe515f93.tar.gz
Add --allow-unsigned to pbuilder --update as well
-rwxr-xr-xicklib/cleanly30
1 files changed, 16 insertions, 14 deletions
diff --git a/icklib/cleanly b/icklib/cleanly
index 26201dc..59b7e6e 100755
--- a/icklib/cleanly
+++ b/icklib/cleanly
@@ -293,22 +293,25 @@ class App(cliapp.Application):
else:
self._report('Update pbuilder basetgz')
tgz = self.settings['pbuilder-tgz']
+
+ argv_prefix = [
+ 'sudo',
+ '-E',
+ 'pbuilder',
+ ]
+ common_opts = [
+ '--aptcache', '',
+ '--allow-untrusted',
+ '--basetgz', tgz,
+ ]
+
cliapp.runcmd(
- ['sudo',
- '-E',
- 'pbuilder',
- '--update',
- '--aptcache', '',
- '--basetgz', tgz],
- stdout=None,
- stderr=None)
+ argv_prefix + ['--update'] + common_opts,
+ stdout=None, stderr=None)
self._report('Build the binary packages')
opts = [
'--build',
- '--aptcache', '',
- '--allow-untrusted',
- '--basetgz', tgz,
'--buildresult', result,
]
if self.settings['build-arch-all-also']:
@@ -316,9 +319,8 @@ class App(cliapp.Application):
else:
opts += ['--debbuildopts', '-B']
cliapp.runcmd(
- ['sudo', '-E', 'pbuilder'] + opts + [dsc_path],
- stdout=None,
- stderr=None)
+ argv_prefix + opts + common_opts + [dsc_path],
+ stdout=None, stderr=None)
def _construct_dsc_pathname(self):
results = self.settings['results']