aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-checkparams
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-checkparams')
-rwxr-xr-xpbuilder-checkparams18
1 files changed, 18 insertions, 0 deletions
diff --git a/pbuilder-checkparams b/pbuilder-checkparams
index c031f18..3cdc48e 100755
--- a/pbuilder-checkparams
+++ b/pbuilder-checkparams
@@ -207,6 +207,14 @@ while [ -n "$1" ]; do
DEBOOTSTRAP="$2";
shift; shift;
;;
+ --allow-untrusted)
+ ALLOWUNTRUSTED=yes;
+ shift;
+ ;;
+ --keyring)
+ APTKEYRINGS[${#APTKEYRINGS[@]}]="$2";
+ shift; shift;
+ ;;
--save-after-login|--save-after-exec)
SAVE_AFTER_LOGIN=yes;
shift;
@@ -312,3 +320,13 @@ fi
# sort BINDMOUNTS to ensure that deeper directories are mounted last
BINDMOUNTS="$(for i in $BINDMOUNTS; do echo $i; done | sort -u)"
+
+if [ "$ALLOWUNTRUSTED" = "yes" ]; then
+ PBUILDERSATISFYDEPENDSOPT[${#PBUILDERSATISFYDEPENDSOPT[@]}]='--allow-untrusted'
+ # Also duplicated in pbuilder-satisfydepends-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