summaryrefslogtreecommitdiff
path: root/icklib
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-12-25 17:15:33 +0200
committerLars Wirzenius <liw@liw.fi>2016-12-25 17:15:33 +0200
commit0c7c5060a68cf16ecc0c0b159050f7ea3d99d5e5 (patch)
tree1df1276efa5b671cb2293ac75d79a06711c5d267 /icklib
parent6c1f804e29cc06d301e8becc849a6f5481cee3c2 (diff)
downloadick-0c7c5060a68cf16ecc0c0b159050f7ea3d99d5e5.tar.gz
Only give the --check-option if dpkg-buildpackage supports it
Diffstat (limited to 'icklib')
-rwxr-xr-xicklib/cleanly9
1 files changed, 8 insertions, 1 deletions
diff --git a/icklib/cleanly b/icklib/cleanly
index 309bccf..9f3e3dc 100755
--- a/icklib/cleanly
+++ b/icklib/cleanly
@@ -311,12 +311,19 @@ class App(cliapp.Application):
argv_prefix + ['--update'] + common_opts,
stdout=None, stderr=None)
+ self._report('Find out of dpkg-buildpackage has --check-option')
+ output = cliapp.runcmd(['dpkg-buildpackage', '--help'])
+ has_check_optio = '---check-option' in output
+
self._report('Build the binary packages')
opts = [
'--build',
'--buildresult', result,
- '--debbuildopts', '--check-option=-Xfoo,bad-distribution-in-changes-file,changed-by-address-malformed',
]
+ if has_check_option:
+ opts.extend([
+ '--debbuildopts', '--check-option=-Xfoo,bad-distribution-in-changes-file,changed-by-address-malformed',
+ ]
if self.settings['build-arch-all-also']:
opts += ['--debbuildopts', '-b']
else: