Codebase list rust-serde-xml-rs / f890c34
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 3 years ago
2 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
144144 LINTIAN_OPTS=([0]="--lintian-opt=--suppress-tags" [1]="--lintian-opt=bad-distribution-in-changes-file")
145145 fi
146146
147 sbuild --no-source --arch-any --arch-all \
147 SBUILD_CONFIG="$SCRIPTDIR/dev/sbuildrc" sbuild --no-source --arch-any --arch-all \
148148 ${CHROOT:+-c $CHROOT} \
149149 ${DISTRIBUTION:+-d $DISTRIBUTION} \
150150 "${EXTRA_DEBS_SBUILD[@]}" \
0 # The following options can be only appended to from the command line.
1 # Let's reset them to empty lists to override the users's ~/.sbuildrc.
2
3 $lintian_opts = [];
4 $autopkgtest_root_args = [];
5 $autopkgtest_opts = [];