* apt-pkg/deb/debmetaindex.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 4 Feb 2008 09:49:15 +0000 (10:49 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 4 Feb 2008 09:49:15 +0000 (10:49 +0100)
  - add missing "Release" file uri when apt-get update --print-uris
    is run

apt-pkg/deb/debmetaindex.cc
debian/changelog

index 9ac659f..ee03519 100644 (file)
@@ -146,7 +146,16 @@ bool debReleaseIndex::GetIndexes(pkgAcquire *Owner, bool GetAll) const
         new pkgAcqIndex(Owner, (*Target)->URI, (*Target)->Description,
                         (*Target)->ShortDesc, HashString());
       }
+      // this is normally created in pkgAcqMetaSig, but if we run
+      // in --print-uris mode, we add it here
+      new pkgAcqMetaIndex(Owner, MetaIndexURI("Release"),
+                    MetaIndexInfo("Release"), "Release",
+                    MetaIndexURI("Release.gpg"), 
+                    ComputeIndexTargets(),
+                    new indexRecords (Dist));
+
    }
+
    new pkgAcqMetaSig(Owner, MetaIndexURI("Release.gpg"),
                     MetaIndexInfo("Release.gpg"), "Release.gpg",
                     MetaIndexURI("Release"), MetaIndexInfo("Release"), "Release",
index 4970531..953c122 100644 (file)
@@ -18,6 +18,9 @@ apt (0.7.11) UNRELEASED; urgency=low
       on amd64 in sbuild
   * apt-pkg/algorithms.cc: 
     - add APT::Update::Post-Invoke-Success script slot
+  * apt-pkg/deb/debmetaindex.cc:
+    - add missing "Release" file uri when apt-get update --print-uris
+      is run
 
  -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 10 Jan 2008 12:06:12 +0100