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

mve MetaKey into pkgAcqBaseIndex

Michael Vogt лет назад: 12
Родитель
Сommit
80976dd545
3 измененных файлов с 6 добавлено и 2 удалено
  1. 0 1
      apt-pkg/acquire-item.cc
  2. 3 0
      apt-pkg/acquire-item.h
  3. 3 1
      test/integration/test-apt-update-rollback

+ 0 - 1
apt-pkg/acquire-item.cc

@@ -1010,7 +1010,6 @@ void pkgAcqIndex::Init(string const &URI, string const &URIDesc, string const &S
    DestFile += URItoFileName(URI);
 
    std::string const comprExt = CompressionExtension.substr(0, CompressionExtension.find(' '));
-   std::string MetaKey;
    if (comprExt == "uncompressed")
    {
       Desc.URI = URI;

+ 3 - 0
apt-pkg/acquire-item.h

@@ -532,6 +532,8 @@ class pkgAcqBaseIndex : public pkgAcquire::Item
     */
    const struct IndexTarget * Target;
    indexRecords *MetaIndexParser;
+   /** \brief The MetaIndex Key */
+   std::string MetaKey;
 
    pkgAcqBaseIndex(pkgAcquire *Owner,
                    unsigned long TransactionID,
@@ -851,6 +853,7 @@ class pkgAcqIndex : public pkgAcqBaseIndex
     */
    bool Erase;
 
+   // FIXME:
    // Unused, used to be used to verify that "Packages: " header was there
    bool __DELME_ON_NEXT_ABI_BREAK_Verify;
 

+ 3 - 1
test/integration/test-apt-update-rollback

@@ -44,7 +44,9 @@ test_inrelease_to_new_inrelease() {
     testequal "old/unstable 1.0 all" apt list -q
 
     add_new_package
-    testsuccess aptget update
+    aptget update -o Debug::Acquire::Transaction=1
+
+    testsuccess aptget update -o Debug::Acquire::Transaction=1
 
     testequal "new/unstable 1.0 all
 old/unstable 1.0 all" apt list -q