diff -Nru launchpad-getkeys-0.3.3/debian/changelog launchpad-getkeys-0.3.4/debian/changelog --- launchpad-getkeys-0.3.3/debian/changelog 2014-07-17 11:27:37.000000000 +0000 +++ launchpad-getkeys-0.3.4/debian/changelog 2016-11-08 11:23:18.000000000 +0000 @@ -1,3 +1,12 @@ +launchpad-getkeys (0.3.4-1~webupd8~yakkety2) yakkety; urgency=medium + + * apt-key no longer supports "--keyserver-options" (and thus, + setting a proxy through its options) for Ubuntu 16.10, so + the script was modified to reflect this change + * Depend on apt >= 1.3 (available in Ubuntu 16.10 and newer) + + -- Alin Andrei Wed, 08 Nov 2016 13:23:18 +0200 + launchpad-getkeys (0.3.3-1~webupd8~2) trusty; urgency=medium * switch to apt-key diff -Nru launchpad-getkeys-0.3.3/debian/control launchpad-getkeys-0.3.4/debian/control --- launchpad-getkeys-0.3.3/debian/control 2014-07-17 11:27:32.000000000 +0000 +++ launchpad-getkeys-0.3.4/debian/control 2016-11-08 11:23:18.000000000 +0000 @@ -2,8 +2,8 @@ Section: admin Priority: extra Maintainer: Alin Andrei -Build-Depends: debhelper (>= 7) -Standards-Version: 3.9.5 +Build-Depends: debhelper (>= 9) +Standards-Version: 3.9.8 Package: launchpad-getkeys Architecture: all diff -Nru launchpad-getkeys-0.3.3/launchpad-getkeys launchpad-getkeys-0.3.4/launchpad-getkeys --- launchpad-getkeys-0.3.3/launchpad-getkeys 2014-07-17 11:22:31.000000000 +0000 +++ launchpad-getkeys-0.3.4/launchpad-getkeys 2016-11-08 11:23:18.000000000 +0000 @@ -19,15 +19,13 @@ GPG keys * -k SERVER:PORT will pass a new keyserver, in case the default keyserver is down -* -p http://PROXY:PORT lets you specify a proxy-server other than the default one. " exit 0 } -while getopts "k:p:h\?" opt; do +while getopts "k:h\?" opt; do case "$opt" in k ) KEYSERVER="$OPTARG" ;; - p ) PROXY="$OPTARG" ;; h ) HELP ;; \?) HELP ;; * ) warn "Unknown option '$opt'"; ;; @@ -44,25 +42,25 @@ fi fi -if [[ $PROXY ]]; then - - PROXYSERVERANDPORT=$(echo $PROXY | grep ":") - if [[ ! $PROXYSERVERANDPORT ]]; then - echo "Error: please enter a proxyserver and a port, like so: sudo launchpad-getkeys -p PROXYSERVER:PORT (without http://)" - exit 0 - fi -fi - -if [[ ! $PROXY ]]; then - PROXY=$http_proxy -fi +#if [[ $PROXY ]]; then +# +# PROXYSERVERANDPORT=$(echo $PROXY | grep ":") +# if [[ ! $PROXYSERVERANDPORT ]]; then +# echo "Error: please enter a proxyserver and a port, like so: sudo launchpad-getkeys -p PROXYSERVER:PORT (without http://)" +# exit 0 +# fi +#fi + +#if [[ ! $PROXY ]]; then +# PROXY=$http_proxy +#fi # use apt proxy -APT_PROXIES=$(apt-config shell http_proxy Acquire::http::Proxy https_proxy Acquire::https::Proxy ftp_proxy Acquire::ftp::Proxy) +#APT_PROXIES=$(apt-config shell http_proxy Acquire::http::Proxy https_proxy Acquire::https::Proxy ftp_proxy Acquire::ftp::Proxy) -if [ -n "$APT_PROXIES" ]; then - eval export $APT_PROXIES -fi +#if [ -n "$APT_PROXIES" ]; then +# eval export $APT_PROXIES +#fi echo " Please wait... launchpad-getkeys is running an update so @@ -82,9 +80,9 @@ while read curline; do GPGKEYTOGET=$(echo $curline | grep NO_PUBKEY | sed -e 's/.*: \|NO_PUBKEY //g') if [[ $KEYSERVER ]]; then - apt-key adv --keyserver hkp://$KEYSERVER --keyserver-options http-proxy=$PROXY --recv-keys $GPGKEYTOGET + apt-key adv --keyserver hkp://$KEYSERVER --recv-keys $GPGKEYTOGET else - apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --keyserver-options http-proxy=$PROXY --recv-keys $GPGKEYTOGET + apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys $GPGKEYTOGET fi let n=n+1 done < /tmp/updateresults