summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-08-01 11:06:47 +0200
committerMichael Vogt <mvo@debian.org>2014-08-01 11:06:47 +0200
commit80976dd5452a9cfbe0c4f6229c729711ba685a5f (patch)
treef637c2c1a2864c3f4bc3396fad9fd8c95e61e2c0
parent21638c3af355b3997fadd169495551568af6acfe (diff)
mve MetaKey into pkgAcqBaseIndex
-rw-r--r--apt-pkg/acquire-item.cc1
-rw-r--r--apt-pkg/acquire-item.h3
-rwxr-xr-xtest/integration/test-apt-update-rollback4
3 files changed, 6 insertions, 2 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index da8402ffc..43c09e7b5 100644
--- a/apt-pkg/acquire-item.cc
+++ b/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;
diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h
index 3f7cca083..f5a308c58 100644
--- a/apt-pkg/acquire-item.h
+++ b/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;
diff --git a/test/integration/test-apt-update-rollback b/test/integration/test-apt-update-rollback
index a6297792e..d7078d217 100755
--- a/test/integration/test-apt-update-rollback
+++ b/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