summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2013-03-25 14:31:44 +0100
committerJulien Cristau <jcristau@debian.org>2013-03-25 14:31:44 +0100
commit56cd612223507d9744224ec4d7c0aa9c06cc9985 (patch)
tree86d817d3a388867603093612877dafb4cdf53a5c /functions
parent896e9210fee36312e3e8ab1c6d42ae07d0bbd223 (diff)
downloaddebootstrap-56cd612223507d9744224ec4d7c0aa9c06cc9985.tar.gz
Disable InRelease support.
gpgv won't give us back the signed data, and full gpg is not available inside d-i (closes: #703889).
Diffstat (limited to 'functions')
-rw-r--r--functions47
1 files changed, 13 insertions, 34 deletions
diff --git a/functions b/functions
index 1dc0f87..068aa06 100644
--- a/functions
+++ b/functions
@@ -503,60 +503,39 @@ download_release_sig () {
local m1="$1"
local reldest="$2"
local relsigdest="$3"
- local release_file_variant="$4"
if [ -n "$KEYRING" ] && [ -z "$DISABLE_KEYRING" ]; then
- if [ "$release_file_variant" != "IN" ]; then
- progress 0 100 DOWNRELSIG "Downloading Release file signature"
- progress_next 50
- get "$m1/dists/$SUITE/Release.gpg" "$relsigdest" nocache ||
- error 1 NOGETRELSIG "Failed getting release signature file %s" \
- "$m1/dists/$SUITE/Release.gpg"
- progress 50 100 DOWNRELSIG "Downloading Release file signature"
- fi
+ progress 0 100 DOWNRELSIG "Downloading Release file signature"
+ progress_next 50
+ get "$m1/dists/$SUITE/Release.gpg" "$relsigdest" nocache ||
+ error 1 NOGETRELSIG "Failed getting release signature file %s" \
+ "$m1/dists/$SUITE/Release.gpg"
+ progress 50 100 DOWNRELSIG "Downloading Release file signature"
info RELEASESIG "Checking Release signature"
# Don't worry about the exit status from gpgv; parsing the output will
# take care of that.
- if [ "$release_file_variant" = "IN" ]; then
- (gpgv --status-fd 1 --keyring "$KEYRING" --ignore-time-conflict \
- "$relsigdest" || true) | read_gpg_status
- else
- (gpgv --status-fd 1 --keyring "$KEYRING" --ignore-time-conflict \
- "$relsigdest" "$reldest" || true) | read_gpg_status
- fi
+ (gpgv --status-fd 1 --keyring "$KEYRING" --ignore-time-conflict \
+ "$relsigdest" "$reldest" || true) | read_gpg_status
progress 100 100 DOWNRELSIG "Downloading Release file signature"
elif [ -z "$DISABLE_KEYRING" ] && [ -n "$KEYRING_WANTED" ]; then
warning KEYRING "Cannot check Release signature; keyring file not available %s" "$KEYRING_WANTED"
fi
- if [ "$release_file_variant" = "IN" ]; then
- rm -f $reldest
- gpg --output "$reldest" --decrypt --keyring "$KEYRING" --ignore-time-conflict "$relsigdest"
- fi
}
download_release_indices () {
local m1="${MIRRORS%% *}"
local reldest="$TARGET/$($DLDEST rel "$SUITE" "$m1" "dists/$SUITE/Release")"
- local inreldest="$TARGET/$($DLDEST rel "$SUITE" "$m1" "dists/$SUITE/InRelease")"
local relsigdest
- local release_file_variant="IN"
progress 0 100 DOWNREL "Downloading Release file"
progress_next 100
- if get "$m1/dists/$SUITE/InRelease" "$inreldest" nocache; then
- extract_release_components $inreldest
- relsigdest="$inreldest"
- else
- info RETRIEVING "Failed to retrieve InRelease"
- get "$m1/dists/$SUITE/Release" "$reldest" nocache ||
- error 1 NOGETREL "Failed getting release file %s" "$m1/dists/$SUITE/Release"
- release_file_variant="GPG"
- relsigdest="$TARGET/$($DLDEST rel "$SUITE" "$m1" "dists/$SUITE/Release.gpg")"
- extract_release_components $reldest
- fi
+ get "$m1/dists/$SUITE/Release" "$reldest" nocache ||
+ error 1 NOGETREL "Failed getting release file %s" "$m1/dists/$SUITE/Release"
+ relsigdest="$TARGET/$($DLDEST rel "$SUITE" "$m1" "dists/$SUITE/Release.gpg")"
+ extract_release_components $reldest
progress 100 100 DOWNREL "Downloading Release file"
- download_release_sig "$m1" "$reldest" "$relsigdest" "$release_file_variant"
+ download_release_sig "$m1" "$reldest" "$relsigdest"
local totalpkgs=0
for c in $COMPONENTS; do