* if a sign-file download fails, delete the the partial download in "partial/" also
authorMichael Vogt <mvo@debian.org>
Thu, 23 Dec 2004 10:02:47 +0000 (10:02 +0000)
committerMichael Vogt <mvo@debian.org>
Thu, 23 Dec 2004 10:02:47 +0000 (10:02 +0000)
apt-pkg/acquire-item.cc
po/apt-all.pot

index f40c6a5..fcd655f 100644 (file)
@@ -392,6 +392,9 @@ void pkgAcqMetaSig::Failed(string Message,pkgAcquire::MethodConfig *Cnf)
    // mistakenly trusted
    string Final = _config->FindDir("Dir::State::lists") + URItoFileName(RealURI);
    unlink(Final.c_str());
+   Final = _config->FindDir("Dir::State::lists") + "partial/"+ URItoFileName(RealURI);
+   unlink(Final.c_str());
+
 
    // queue a pkgAcqMetaIndex with no sigfile
    new pkgAcqMetaIndex(Owner, MetaIndexURI, MetaIndexURIDesc, MetaIndexShortDesc,
index 7d8e9d4..c57945a 100644 (file)
@@ -2259,31 +2259,31 @@ msgstr ""
 msgid "rename failed, %s (%s -> %s)."
 msgstr ""
 
-#: apt-pkg/acquire-item.cc:235 apt-pkg/acquire-item.cc:893
+#: apt-pkg/acquire-item.cc:235 apt-pkg/acquire-item.cc:896
 msgid "MD5Sum mismatch"
 msgstr ""
 
-#: apt-pkg/acquire-item.cc:707
+#: apt-pkg/acquire-item.cc:710
 #, c-format
 msgid ""
 "I wasn't able to locate a file for the %s package. This might mean you need "
 "to manually fix this package. (due to missing arch)"
 msgstr ""
 
-#: apt-pkg/acquire-item.cc:760
+#: apt-pkg/acquire-item.cc:763
 #, c-format
 msgid ""
 "I wasn't able to locate file for the %s package. This might mean you need to "
 "manually fix this package."
 msgstr ""
 
-#: apt-pkg/acquire-item.cc:796
+#: apt-pkg/acquire-item.cc:799
 #, c-format
 msgid ""
 "The package index files are corrupted. No Filename: field for package %s."
 msgstr ""
 
-#: apt-pkg/acquire-item.cc:883
+#: apt-pkg/acquire-item.cc:886
 msgid "Size mismatch"
 msgstr ""