aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-satisfydepends-checkparams
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@netfort.gr.jp>2010-07-05 22:18:05 +0900
committerJunichi Uekawa <dancer@netfort.gr.jp>2010-07-05 22:18:05 +0900
commitd5e06cb5cae17d5f8b6ce1954e35443b2c7a7df3 (patch)
tree26c07d628f60b2872ad7c18a68880c130388523e /pbuilder-satisfydepends-checkparams
parent68c7f72fd56e20ddb6a2e83bdd355c46af9620ea (diff)
downloadpbuilder-d5e06cb5cae17d5f8b6ce1954e35443b2c7a7df3.tar
pbuilder-d5e06cb5cae17d5f8b6ce1954e35443b2c7a7df3.tar.gz
Add an option to verify key signatures. (closes: #579028)
By unsetting APTGETOPT, and setting PBUILDERSATISFYDEPENDSOPT=('--check-key'), the user now has an option of verifying the key signature of each package against the installed keyring.
Diffstat (limited to 'pbuilder-satisfydepends-checkparams')
-rwxr-xr-xpbuilder-satisfydepends-checkparams11
1 files changed, 11 insertions, 0 deletions
diff --git a/pbuilder-satisfydepends-checkparams b/pbuilder-satisfydepends-checkparams
index 16e418d..58ce976 100755
--- a/pbuilder-satisfydepends-checkparams
+++ b/pbuilder-satisfydepends-checkparams
@@ -27,6 +27,12 @@ FORCEVERSION=""
CONTINUE_FAIL="no"
CHROOTEXEC_AFTER_INTERNAL_CHROOTEXEC=no
+# aptitude flag to ignore key verification
+PBUILDER_APTITUDE_CHECK_OPTS=('-o' \
+ 'Aptitude::CmdLine::Ignore-Trust-Violations=true')
+# apt flag to ignore key verification
+PBUILDER_APT_GET_CHECK_OPTS="--force-yes"
+
while [ -n "$1" ]; do
case "$1" in
--control|-c)
@@ -72,6 +78,11 @@ while [ -n "$1" ]; do
FORCEVERSION="yes"
shift;
;;
+ --check-key)
+ unset PBUILDER_APTITUDE_CHECK_OPTS
+ unset PBUILDER_APT_GET_CHECK_OPTS
+ shift;
+ ;;
--help|-h|*)
print_help
exit 1