DestFile = _config->FindDir("Dir::State::lists") + "partial/";
DestFile += URItoFileName(URI);
+ // remove any partial downloaded sig-file. it may confuse proxies
+ // and is too small to warrant a partial download anyway
+ unlink(DestFile.c_str());
+
// Create the item
Desc.Description = URIDesc;
Desc.Owner = this;
string Final = _config->FindDir("Dir::State::lists") + URItoFileName(RealURI);
unlink(Final.c_str());
- // if we debug leave the sig-file in partial/ to see what went wrong
- // else delete it
- if (!_config->FindB("Debug::pkgAcquire::Auth", false)) {
-
- 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,
"", IndexTargets, MetaIndexParser);
apt (0.6.27ubuntu4) hoary; urgency=low
- * if a sign-file download fails, delete the the partial downloaded
- file in "partial/"
+ * remove old sig-file in partial/ before starting to fetch a new sig-file
+ (see ubuntu #4769 for the rational)
* added apt-key update method (uses ubuntu-keyring)
* documented the "--allow-unauthenticated" switch
* added DEB_BUILD_PROG_OPTS to debian/rules (additonal options can be
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2004-12-23 11:46+0100\n"
+"POT-Creation-Date: 2004-12-23 12:36+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "rename failed, %s (%s -> %s)."
msgstr ""
-#: apt-pkg/acquire-item.cc:235 apt-pkg/acquire-item.cc:904
+#: apt-pkg/acquire-item.cc:235 apt-pkg/acquire-item.cc:897
msgid "MD5Sum mismatch"
msgstr ""
-#: apt-pkg/acquire-item.cc:718
+#: apt-pkg/acquire-item.cc:711
#, 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:771
+#: apt-pkg/acquire-item.cc:764
#, 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:807
+#: apt-pkg/acquire-item.cc:800
#, c-format
msgid ""
"The package index files are corrupted. No Filename: field for package %s."
msgstr ""
-#: apt-pkg/acquire-item.cc:894
+#: apt-pkg/acquire-item.cc:887
msgid "Size mismatch"
msgstr ""