Kaynağa Gözat

* cmdline/apt-key:
- support also Dir::Etc::Trusted so that apt-key works in the same
way as the library part which works with the trusted files

David Kalnischkies 16 yıl önce
ebeveyn
işleme
1f8b2599f6
3 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. 2 0
      cmdline/apt-key
  2. 4 1
      debian/changelog
  3. 1 0
      test/integration/framework

+ 2 - 0
cmdline/apt-key

@@ -147,11 +147,13 @@ else
 	#echo "generate list"
 	#echo "generate list"
 	TRUSTEDFILE="/etc/apt/trusted.gpg"
 	TRUSTEDFILE="/etc/apt/trusted.gpg"
 	eval $(apt-config shell TRUSTEDFILE Apt::GPGV::TrustedKeyring)
 	eval $(apt-config shell TRUSTEDFILE Apt::GPGV::TrustedKeyring)
+	eval $(apt-config shell TRUSTEDFILE Dir::Etc::Trusted/f)
 	if [ -r "$TRUSTEDFILE" ]; then
 	if [ -r "$TRUSTEDFILE" ]; then
 		GPG="$GPG --keyring $TRUSTEDFILE"
 		GPG="$GPG --keyring $TRUSTEDFILE"
 	fi
 	fi
 	GPG="$GPG --primary-keyring $TRUSTEDFILE"
 	GPG="$GPG --primary-keyring $TRUSTEDFILE"
 	TRUSTEDPARTS="/etc/apt/trusted.gpg.d"
 	TRUSTEDPARTS="/etc/apt/trusted.gpg.d"
+	eval $(apt-config shell TRUSTEDPARTS Dir::Etc::TrustedParts/d)
 	if [ -d "$TRUSTEDPARTS" ]; then
 	if [ -d "$TRUSTEDPARTS" ]; then
 		#echo "parts active"
 		#echo "parts active"
 		for trusted in $(run-parts --list $TRUSTEDPARTS --regex '^.*\.gpg$'); do
 		for trusted in $(run-parts --list $TRUSTEDPARTS --regex '^.*\.gpg$'); do

+ 4 - 1
debian/changelog

@@ -10,8 +10,11 @@ apt (0.8.2) UNRELEASED; urgency=low
   * apt-pkg/indexcopy.cc:
   * apt-pkg/indexcopy.cc:
     - support really still the APT::GPGV::TrustedKeyring setting,
     - support really still the APT::GPGV::TrustedKeyring setting,
       as it breaks d-i badly otherwise (Closes: #595428)
       as it breaks d-i badly otherwise (Closes: #595428)
+  * cmdline/apt-key:
+    - support also Dir::Etc::Trusted so that apt-key works in the same
+      way as the library part which works with the trusted files
 
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Sat, 04 Sep 2010 10:45:45 +0200
+ -- David Kalnischkies <kalnischkies@gmail.com>  Sat, 04 Sep 2010 15:25:10 +0200
 
 
 apt (0.8.1) unstable; urgency=low
 apt (0.8.1) unstable; urgency=low
 
 

+ 1 - 0
test/integration/framework

@@ -72,6 +72,7 @@ aptconfig() { runapt apt-config $*; }
 aptcache() { runapt apt-cache $*; }
 aptcache() { runapt apt-cache $*; }
 aptget() { runapt apt-get $*; }
 aptget() { runapt apt-get $*; }
 aptftparchive() { runapt apt-ftparchive $*; }
 aptftparchive() { runapt apt-ftparchive $*; }
+aptkey() { runapt apt-key $*; }
 dpkg() {
 dpkg() {
 	$(which dpkg) --root=${TMPWORKINGDIRECTORY}/rootdir --force-not-root --force-bad-path --log=${TMPWORKINGDIRECTORY}/rootdir/var/log/dpkg.log $*
 	$(which dpkg) --root=${TMPWORKINGDIRECTORY}/rootdir --force-not-root --force-bad-path --log=${TMPWORKINGDIRECTORY}/rootdir/var/log/dpkg.log $*
 }
 }