summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChristian PERRIER <bubulle@debian.org>2013-03-20 20:28:01 (GMT)
committerChristian PERRIER <bubulle@debian.org>2013-03-20 20:28:01 (GMT)
commit9d2779e3ae177f87067871da00abf198ae91499c (patch)
tree12a960dc31249a5904e81ecb17d72913f7595ded /functions
parentfe975709fa0450e3e3d2335128d3b2a64da3a5c1 (diff)
downloaddebootstrap-9d2779e3ae177f87067871da00abf198ae91499c.zip
debootstrap-9d2779e3ae177f87067871da00abf198ae91499c.tar.gz
debootstrap-9d2779e3ae177f87067871da00abf198ae91499c.tar.bz2
* Properly decrypt the InRelease file when downloading from an archive
where InRelease is used. This longstanding bug was masked by former APT behaviour and was revealed only with recent APT versions Closes: #703146 Thanks to Michael Vogt for the analysis and patch
Diffstat (limited to 'functions')
-rw-r--r--functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions b/functions
index c1e938e..1dc0f87 100644
--- a/functions
+++ b/functions
@@ -530,7 +530,8 @@ download_release_sig () {
warning KEYRING "Cannot check Release signature; keyring file not available %s" "$KEYRING_WANTED"
fi
if [ "$release_file_variant" = "IN" ]; then
- mv "$relsigdest" "$reldest"
+ rm -f $reldest
+ gpg --output "$reldest" --decrypt --keyring "$KEYRING" --ignore-time-conflict "$relsigdest"
fi
}