Просмотр исходного кода

* merged the trust-cdrom branch

Patches applied:

 * michael.vogt@ubuntu.com--2005/apt--trust-cdrom--0--base-0
   tag of apt@packages.debian.org/apt--main--0--patch-79

 * michael.vogt@ubuntu.com--2005/apt--trust-cdrom--0--patch-1
   * implemented "TrustCDROM" mode

 * michael.vogt@ubuntu.com--2005/apt--trust-cdrom--0--patch-2
   * added APT::Authentication::TrustCDROM to the configure-index
Michael Vogt лет назад: 21
Родитель
Сommit
5d4aff08ac
4 измененных файлов с 18 добавлено и 8 удалено
  1. 4 0
      apt-pkg/deb/debmetaindex.cc
  2. 1 1
      configure.in
  3. 8 7
      debian/changelog
  4. 5 0
      doc/examples/configure-index

+ 4 - 0
apt-pkg/deb/debmetaindex.cc

@@ -165,6 +165,10 @@ bool debReleaseIndex::IsTrusted() const
    string VerifiedSigFile = _config->FindDir("Dir::State::lists") +
       URItoFileName(MetaIndexURI("Release")) + ".gpg";
    
+   if(_config->FindB("APT::Authentication::TrustCDROM", false))
+      if(URI.substr(0,strlen("cdrom:")) == "cdrom:")
+	 return true;
+   
    if (FileExists(VerifiedSigFile))
       return true;
    return false;

+ 1 - 1
configure.in

@@ -18,7 +18,7 @@ AC_CONFIG_AUX_DIR(buildlib)
 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)
 
 dnl -- SET THIS TO THE RELEASE VERSION --
-AC_DEFINE_UNQUOTED(VERSION,"0.6.40.2")
+AC_DEFINE_UNQUOTED(VERSION,"0.6.40.1ubuntu2")
 PACKAGE="apt"
 AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
 AC_SUBST(PACKAGE)

+ 8 - 7
debian/changelog

@@ -1,4 +1,4 @@
-apt (0.6.40.2) unstable; urgency=low
+apt (0.6.40.1ubuntu2) breezy; urgency=low
 
   * improved the support for "error" and "conffile" reporting from
     dpkg, added the format to README.progress-reporting
@@ -11,14 +11,15 @@ apt (0.6.40.2) unstable; urgency=low
   * apt-pkg/acquire-item.cc:
     - fail early if a FailReason is TmpResolveFailure (avoids hangs during
       the install when no network is available)
+  * merged michael.vogt@ubuntu.com--2005/apt--trust-cdrom--0
 
- --
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Tue, 23 Aug 2005 19:44:55 +0200
 
 apt (0.6.40.1ubuntu1) breezy; urgency=low
 
-  * Synchronize with Debian 
+  * Synchronize with Debian
 
- -- Michael Vogt <michael.vogt@ubuntu.com>  Fri, 5 Aug 2005 14:20:56 +0200
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Fri,  5 Aug 2005 14:20:56 +0200
 
 apt (0.6.40.1) unstable; urgency=low
 
@@ -27,13 +28,13 @@ apt (0.6.40.1) unstable; urgency=low
     conditions
   * 0.6.40 breaks the ABI but I accidentally didn't change the soname :/
 
- -- Michael Vogt <mvo@debian.org>  Fri, 5 Aug 2005 13:24:58 +0200
+ -- Michael Vogt <mvo@debian.org>  Fri,  5 Aug 2005 13:24:58 +0200
 
 apt (0.6.40ubuntu1) breezy; urgency=low
 
-   * Synchronize with Debian 
+   * Synchronize with Debian
 
- -- Matt Zimmerman <mdz@ubuntu.com>  Thu, 4 Aug 2005 15:53:22 -0700
+ -- Matt Zimmerman <mdz@ubuntu.com>  Thu,  4 Aug 2005 15:53:22 -0700
 
 apt (0.6.40) unstable; urgency=low
 

+ 5 - 0
doc/examples/configure-index

@@ -72,6 +72,11 @@ APT
      NoAct "false";
   };
 
+  Authentication
+  {
+     TrustCDROM "false";            // consider the CDROM always trusted
+  };
+
   GPGV
   {
      TrustedKeyring "/etc/apt/trusted.gpg";