diff options
Diffstat (limited to 'pbuilder-satisfydepends-checkparams')
-rwxr-xr-x | pbuilder-satisfydepends-checkparams | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/pbuilder-satisfydepends-checkparams b/pbuilder-satisfydepends-checkparams index b81c765..24a601f 100755 --- a/pbuilder-satisfydepends-checkparams +++ b/pbuilder-satisfydepends-checkparams @@ -26,6 +26,7 @@ BINARY_ARCH="no" FORCEVERSION="" CONTINUE_FAIL="no" CHROOTEXEC_AFTER_INTERNAL_CHROOTEXEC=no +ALLOWUNTRUSTED=no while [ -n "$1" ]; do case "$1" in @@ -73,16 +74,11 @@ while [ -n "$1" ]; do shift; ;; --check-key) - log 'W: --check-key is now enabled by default and thus deprecated.' + ALLOWUNTRUSTED=no shift; ;; --allow-untrusted) - # Also duplicated in pbuilder-checkparams! - # apt flag to accept untrusted packages - APTGETOPT[${#APTGETOPT[@]}]='--force-yes' - # aptitude flag to accept untrusted packages - APTITUDEOPT[${#APTITUDEOPT[@]}]='-o' - APTITUDEOPT[${#APTITUDEOPT[@]}]='Aptitude::CmdLine::Ignore-Trust-Violations=true' + ALLOWUNTRUSTED=yes shift; ;; --help|-h|*) @@ -92,4 +88,13 @@ while [ -n "$1" ]; do esac done +if [ $ALLOWUNTRUSTED = yes ]; then + # Also duplicated in pbuilder-checkparams! + # apt flag to accept untrusted packages + APTGETOPT[${#APTGETOPT[@]}]='--force-yes' + # aptitude flag to accept untrusted packages + APTITUDEOPT[${#APTITUDEOPT[@]}]='-o' + APTITUDEOPT[${#APTITUDEOPT[@]}]='Aptitude::CmdLine::Ignore-Trust-Violations=true' +fi + checkbuilddep_internal |