[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#390449: marked as done (please consider including debian-edu-archive-keys handling)



Your message dated Mon, 05 Sep 2016 19:45:16 +0000
with message-id <[🔎] E1bgzpU-00010W-8S@franck.debian.org>
and subject line Bug#836375: Removed package(s) from unstable
has caused the Debian Bug report #390449,
regarding please consider including debian-edu-archive-keys handling
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
390449: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=390449
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Severity: Wishlist
Tags: Patch

Hi

Now the debian-edu-archive-keyring package entered Debian. Can you please 
consider including the following patch, which will honour the debian-edu 
archive key and include it into the local keyring with apt-key update?

Cheers
Steffen
--- apt-0.6.46/cmdline/apt-key	2006-03-03 01:28:27.000000000 +1100
+++ apt-0.6.47/cmdline/apt-key	2006-10-01 20:17:26.000000000 +1000
@@ -11,7 +11,8 @@
 
 ARCHIVE_KEYRING=/usr/share/keyrings/debian-archive-keyring.gpg
 REMOVED_KEYS=/usr/share/keyrings/debian-archive-removed-keys.gpg
-
+DEBIAN_EDU_ARCHIVE_KEYRING=/usr/share/keyrings/debian-edu-archive-keyring.gpg
+DEBIAN_EDU_ARCHIVE_REMOVED_KEYS=/usr/share/keyrings/debian-edu-archive-removed-keys.gpg
 
 update() {
     if [ ! -f $ARCHIVE_KEYRING ]; then
@@ -21,14 +22,32 @@
     fi
 
     # add new keys
-    $GPG_CMD --quiet --batch --keyring $ARCHIVE_KEYRING --export | $GPG --ignore-time-conflict --import
+    key_add $ARCHIVE_KEYRING
+    
+    # remove no-longer used keys
+    key_remove $REMOVED_KEYS
+
+    # handle debian-edu keys if available
+    if [ -f $DEBIAN_EDU_ARCHIVE_KEYRING ] ; then
+	key_add $DEBIAN_EDU_ARCHIVE_KEYRING
+    fi
+    if [ -f $DEBIAN_EDU_ARCHIVE_REMOVED_KEYS ] ; then
+	key_remove $DEBIAN_EDU_ARCHIVE_REMOVED_KEYS
+    fi
+}
+
+key_add() {
+    # add new keys
+    $GPG_CMD --quiet --batch --keyring $1 --export | $GPG --ignore-time-conflict --import
+}
 
+key_remove() {
     # remove no-longer used keys
-    keys=`$GPG_CMD --keyring $REMOVED_KEYS --with-colons --list-keys|awk '/^pub/{FS=":";print $5}'`
+    keys=`$GPG_CMD --keyring $1 --with-colons --list-keys|awk '/^pub/{FS=":";print $5}'`
     for key in $keys; do
-	if $GPG --list-keys --with-colons | awk '/^pub/{FS=":";print $5}'|grep -q $key; then
-	    $GPG --quiet --batch --delete-key --yes ${key}
-	fi
+        if $GPG --list-keys --with-colons | awk '/^pub/{FS=":";print $5}'|grep -q $key; then
+            $GPG --quiet --batch --delete-key --yes ${key}
+        fi
     done
 }
 

Attachment: pgpuSn8FzMfuw.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Version: 2014.10.14+rm

Dear submitter,

as the package debian-edu-archive-keyring has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/836375

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Chris Lamb (the ftpmaster behind the curtain)

--- End Message ---

Reply to: