build.sh: reset the append-only option lists
sbuild arguments like --autopkgtest-opt (and -opts) append the specified
options to associated config file list (in this case autopkgtest_opts).
This can lead to a broken configuration. For example in ~/.sbuildrc I have:
$autopkgtest_opts = ['--', 'schroot', '%r-%a-sbuild'];
and I can't use build.sh as is as it passes (basically) the same
options to sbuild via --autopkgtest-opts, and the resulting option
list with duplicate entries doesn't work.
This change ensures that the append-only option lists build.sh
uses are reset to empty lists.
Paride Legovini
2 years ago
144 | 144 | LINTIAN_OPTS=([0]="--lintian-opt=--suppress-tags" [1]="--lintian-opt=bad-distribution-in-changes-file") |
145 | 145 | fi |
146 | 146 | |
147 | sbuild --no-source --arch-any --arch-all \ | |
147 | SBUILD_CONFIG="$SCRIPTDIR/dev/sbuildrc" sbuild --no-source --arch-any --arch-all \ | |
148 | 148 | ${CHROOT:+-c $CHROOT} \ |
149 | 149 | ${DISTRIBUTION:+-d $DISTRIBUTION} \ |
150 | 150 | "${EXTRA_DEBS_SBUILD[@]}" \ |