From: Michael Vogt Date: Thu, 10 Dec 2009 16:24:40 +0000 (+0100) Subject: merged -r1875..1886 from lp:~donkult/apt/sid X-Git-Tag: 0.7.25~8^2~7 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/be2033f9563d148c1ebf1b70c46a1aba6501c031?hp=-c merged -r1875..1886 from lp:~donkult/apt/sid --- be2033f9563d148c1ebf1b70c46a1aba6501c031 diff --combined apt-pkg/packagemanager.cc index 7be6e72f2,f75c5b61f..7aef49718 --- a/apt-pkg/packagemanager.cc +++ b/apt-pkg/packagemanager.cc @@@ -143,10 -143,6 +143,6 @@@ void pkgPackageManager::ImmediateAdd(Pk for ( /* nothing */ ; D.end() == false; D++) if (D->Type == pkgCache::Dep::Depends || D->Type == pkgCache::Dep::PreDepends) { - // ignore dependencies if no instal/upgrade/remove is going to happen - if (D.TargetPkg() == 0 || Cache[D.TargetPkg()].Keep()) - continue; - if(!List->IsFlag(D.TargetPkg(), pkgOrderList::Immediate)) { if(Debug) @@@ -297,9 -293,6 +293,9 @@@ bool pkgPackageManager::ConfigureAll( of it's dependents. */ bool pkgPackageManager::SmartConfigure(PkgIterator Pkg) { + if (Debug == true) + clog << "SmartConfigure " << Pkg.Name() << endl; + pkgOrderList OList(&Cache); if (DepAdd(OList,Pkg) == false) @@@ -478,7 -471,8 +474,8 @@@ bool pkgPackageManager::SmartUnPack(Pkg List->Flag(Pkg,pkgOrderList::UnPacked,pkgOrderList::States); if (List->IsFlag(Pkg,pkgOrderList::Immediate) == true) if (SmartConfigure(Pkg) == false) - return _error->Error("Internal Error, Could not perform immediate configuration (1) on %s",Pkg.Name()); + return _error->Error(_("Could not perform immediate configuration for on already unpacked %s." + "Please see man 5 apt.conf under APT::Immediate-Configure for details."),Pkg.Name()); return true; } @@@ -494,9 -488,6 +491,9 @@@ while (End->Type == pkgCache::Dep::PreDepends) { + if (Debug == true) + clog << "PreDepends order for " << Pkg.Name() << std::endl; + // Look for possible ok targets. SPtrArray VList = Start.AllTargets(); bool Bad = true; @@@ -510,8 -501,6 +507,8 @@@ Pkg.State() == PkgIterator::NeedsNothing) { Bad = false; + if (Debug == true) + clog << "Found ok package " << Pkg.Name() << endl; continue; } } @@@ -527,8 -516,6 +524,8 @@@ (Cache[Pkg].Keep() == true && Pkg.State() == PkgIterator::NeedsNothing)) continue; + if (Debug == true) + clog << "Trying to SmartConfigure " << Pkg.Name() << endl; Bad = !SmartConfigure(Pkg); } @@@ -585,7 -572,8 +582,8 @@@ // Perform immedate configuration of the package. if (List->IsFlag(Pkg,pkgOrderList::Immediate) == true) if (SmartConfigure(Pkg) == false) - return _error->Error("Internal Error, Could not perform immediate configuration (2) on %s",Pkg.Name()); + return _error->Error(_("Could not perform immediate configuration on %s." + "Please see man 5 apt.conf under APT::Immediate-Configure for details."),Pkg.Name()); return true; } diff --combined debian/changelog index 9b3bd724c,4b2719e50..60893ad75 --- a/debian/changelog +++ b/debian/changelog @@@ -11,43 -11,20 +11,54 @@@ apt (0.7.25) UNRELEASED; urgency=lo Closes: #479997 * Polish translation update by Wiktor Wandachowicz Closes: #548571 + * German translation update by Holger Wansing + Closes: #551534 + * German translation of manpages by Chris Leick + Closes: #552606 + * Italian translation update by Milo Casagrande + Closes: #555797 + * Simplified Chinese translation update by Aron Xu + Closes: #558737 + * Slovak translation update by Ivan Masár + Closes: #559277 + + [ Michael Vogt ] - * apt-pkg/packagemanager.cc: - - fix overly aggressive immediate config propergation - (thanks to David Kalnischkies) + * apt-pkg/packagemanager.cc: + - add output about pre-depends configuring when debug::pkgPackageManager + is used + * methods/https.cc: + - fix incorrect use of CURLOPT_TIMEOUT, closes: #497983, LP: #354972 + thanks to Brian Thomason for the patch + * merge lp:~mvo/apt/netrc branch, this adds support for a + /etc/apt/auth.conf that can be used to store username/passwords + in a "netrc" style file (with the extension that it supports "/" - in a machine definition). Based on the maemo git branch. ++ in a machine definition). Based on the maemo git branch (Closes: #518473) ++ (thanks also to Jussi Hakala and Julian Andres Klode) + * apt-pkg/deb/dpkgpm.cc: + - add "purge" to list of known actions + + [ Brian Murray ] + * apt-pkg/depcache.cc, apt-pkg/indexcopy.cc: + - typo fix (LP: #462328) + + [ Loïc Minier ] + * cmdline/apt-key: + - Emit a warning if removed keys keyring is missing and skip associated + checks (LP: #218971) + [ David Kalnischkies ] + * apt-pkg/packagemanager.cc: + - better debug output for ImmediateAdd with depth and why + - improve the message shown for failing immediate configuration + * doc/guide.it.sgml: moved to doc/it/guide.it.sgml + * doc/po4a.conf: activate translation of guide.sgml and offline.sgml + * doc/apt.conf.5.xml: + - provide a few more details about APT::Immediate-Configure + * doc/sources.list.5.xml: + - add note about additional apt-transport-methods + * doc/apt-mark.8.xml: + - correct showauto synopsis, thanks Andrew Schulman (Closes: #551440) + [ Julian Andres Klode ] * doc/apt.conf.5.xml: - Deprecate unquoted values, string concatenation and explain what should @@@ -55,13 -32,9 +66,10 @@@ - Restrict option names to alphanumerical characters and "/-:._+". - Deprecate #include, we have apt.conf.d nowadays which should be sufficient. -- * methods/https.cc: -- - Add support for authentication using netrc (Closes: #518473), patch -- by Jussi Hakala . + * ftparchive/apt-ftparchive.cc: + - Call setlocale() so translations are actually used. + * debian/apt.conf.autoremove: + - Add kfreebsd-image-* to the list (Closes: #558803) -- Michael Vogt Tue, 29 Sep 2009 15:51:34 +0200 diff --combined methods/https.cc index 3717ded7b,79e6fea3f..86d7f3a6b --- a/methods/https.cc +++ b/methods/https.cc @@@ -14,7 -14,6 +14,7 @@@ #include #include #include +#include #include #include @@@ -127,10 -126,8 +127,10 @@@ bool HttpsMethod::Fetch(FetchItem *Itm curl_easy_reset(curl); SetupProxy(); + maybe_add_auth (Uri, _config->FindFile("Dir::Etc::netrc")); + // callbacks - curl_easy_setopt(curl, CURLOPT_URL, Itm->Uri.c_str()); + curl_easy_setopt(curl, CURLOPT_URL, static_cast(Uri).c_str()); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data); curl_easy_setopt(curl, CURLOPT_WRITEDATA, this); curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress_callback); @@@ -138,7 -135,7 +138,6 @@@ curl_easy_setopt(curl, CURLOPT_NOPROGRESS, false); curl_easy_setopt(curl, CURLOPT_FAILONERROR, true); curl_easy_setopt(curl, CURLOPT_FILETIME, true); -- curl_easy_setopt(curl, CURLOPT_NETRC, CURL_NETRC_OPTIONAL); // SSL parameters are set by default to the common (non mirror-specific) value // if available (or a default one) and gets overload by mirror-specific ones. @@@ -216,10 -213,8 +215,10 @@@ // set timeout int timeout = _config->FindI("Acquire::http::Timeout",120); - curl_easy_setopt(curl, CURLOPT_TIMEOUT, timeout); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, timeout); + //set really low lowspeed timeout (see #497983) + curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, DL_MIN_SPEED); + curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, timeout); // set redirect options and default to 10 redirects bool AllowRedirect = _config->FindI("Acquire::https::AllowRedirect", true);