apt-pkg/acquire-item.cc: make pkgAcqDiffIndex more uniform
authorMichael Vogt <mvo@debian.org>
Thu, 17 Jul 2014 07:59:55 +0000 (09:59 +0200)
committerMichael Vogt <mvo@debian.org>
Thu, 17 Jul 2014 07:59:55 +0000 (09:59 +0200)
apt-pkg/acquire-item.cc

index 0911d11..6cb9b01 100644 (file)
@@ -356,7 +356,7 @@ pkgAcqDiffIndex::pkgAcqDiffIndex(pkgAcquire *Owner,
    Desc.URI = URI + ".diff/Index";
 
    DestFile = _config->FindDir("Dir::State::lists") + "partial/";
-   DestFile += URItoFileName(URI) + string(".DiffIndex");
+   DestFile += URItoFileName(Desc.URI);
 
    if(Debug)
       std::clog << "pkgAcqDiffIndex: " << Desc.URI << std::endl;
@@ -392,7 +392,7 @@ pkgAcqDiffIndex::pkgAcqDiffIndex(pkgAcquire *Owner,
 string pkgAcqDiffIndex::Custom600Headers()
 {
    string Final = _config->FindDir("Dir::State::lists");
-   Final += URItoFileName(RealURI) + string(".IndexDiff");
+   Final += URItoFileName(Desc.URI);
    
    if(Debug)
       std::clog << "Custom600Header-IMS: " << Final << std::endl;