summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
AgeCommit message (Collapse)Author
2010-06-09move the users away from the deprecated StrToTime() methodDavid Kalnischkies
2010-06-09use the portable timegm shown in his manpage instead of a strangeDavid Kalnischkies
looking code copycat from wget
2010-06-08* apt-pkg/contrib/strutl.cc:David Kalnischkies
- split StrToTime() into HTTP1.1 and FTP date parser methods and use strptime() instead of some selfmade scanf mangling
2010-05-13* contrib/mmap.cc:David Kalnischkies
- clarify "MMap reached size limit" error message, thanks Ivan Masár!
2010-05-04* apt-pkg/contrib/weakptr.h:Julian Andres Klode
- add a class WeakPointable which allows one to register weak pointers to an object which will be set to NULL when the object is deallocated. * [ABI break] apt-pkg/acquire{-worker,-item,}.h: - subclass pkgAcquire::{Worker,Item,ItemDesc} from WeakPointable.
2010-04-24* apt-pkg/contrib/configuration.cc:David Kalnischkies
- error out if #clear directive has no argument
2010-04-07* apt-pkg/contrib/fileutl.cc:David Kalnischkies
- add a parent-guarded "mkdir -p" as CreateDirectory() * apt-pkg/acquire.{cc,h}: - add a delayed constructor with Setup() for success reporting - check for and create directories in Setup if needed instead of error out unfriendly in the Constructor (Closes: #523920, #525783) - optional handle a lock file in Setup() * cmdline/apt-get.cc: - remove the lock file handling and let Acquire take care of it instead
2010-04-04remove the ABI compatible stub for GetListOfFilesInDirDavid Kalnischkies
2010-03-31Userinfo is urlencoded in URIs (RFC 3986)David Kalnischkies
Thanks to Jean-Baptiste Lallement for spotting and fixing it! * apt-pkg/contrib/strutl.cc: - always escape '%' (LP: #130289) (Closes: #500560) - unescape '%' sequence only if followed by 2 hex digit - username/password are urlencoded in proxy string (RFC 3986)
2010-03-30rename ExplodeString to VectorizeStringDavid Kalnischkies
2010-03-30replace every call to toupper with one to our own tolower_asciiDavid Kalnischkies
This sounds like a premature optimization and since Mr. Knuth we all know that they are the root of all evil - but, and here it starts to be interesting: As the tolower_ascii method is by far the most called method we have (~60 Mio. times) and as we compare only strings containing ascii characters (package names, configuration options) using our own method reduces execution time of APT by 4% plus it avoids that the locale settings can influence us.
2010-03-18merge MultiArch-ABI. We don't support MultiArch yet (as most other tools),David Kalnischkies
but we support the usage of the new ABI so libapt users can start to prepare for MultiArch (Closes: #536029)
2010-03-12* apt-pkg/deb/dpkgpm.cc:David Kalnischkies
- if available store the Commandline in the history * apt-pkg/contrib/cmndline.cc: - save Commandline in Commandline::AsString for logging
2010-02-27* apt-pkg/contrib/mmap.{h,cc}:David Kalnischkies
- add char[] fallback for filesystems without shared writable mmap() like JFFS2. Thanks to Marius Vollmer for writing and to Loïc Minier for pointing to the patch! (Closes: #314334)
2010-02-18merge from the lp:~donkult/apt/sid branchMichael Vogt
2010-02-18* [BREAK] merged lp:~mvo/apt/historyMichael Vogt
- this writes a /var/log/apt/history tagfile that contains details from the transaction (complements term.log) * methods/http.cc: - add cache-control headers even if no cache is given to allow adding options for intercepting proxies - add Acquire::http::ProxyAutoDetect configuration that can be used to call a external helper to figure out the proxy configuration and return it to apt via stdout (this is a step towards WPAD and zeroconf/avahi support) * abicheck/ - add new abitest tester using the ABI Compliance Checker from http://ispras.linuxfoundation.org/index.php/ABI_compliance_checker * Change the package index Info methods to allow apt-cache policy to be useful when using several different archives on the same host. (Closes: #329814, LP: #22354)
2010-02-18Change the package index Info methods to allow apt-cache policy to beMichael Vogt
useful when using several different archives on the same host. (Closes: #329814, LP: #22354)
2010-02-18criss-cross merge with my sid branchDavid Kalnischkies
2010-02-18dd support for the LANGUAGE environment variableDavid Kalnischkies
2010-02-14Add support for the LANGUAGE environment variableDavid Kalnischkies
2010-02-13[BREAK] merge MultiArch-ABI. We don't support MultiArch,David Kalnischkies
but we support the usage of the new ABI so libapt users can start to prepare for MultiArch (Closes: #536029) MultiArch isn't ready for Primetime usage for now, but the branch has managed to be a NOP if used in SingleArch-mode so we can start to promote the use of the new MultiArchable API-extensions.
2010-02-13merge with debian-sidDavid Kalnischkies
2010-01-31merge r1966..1967 from lp:~donkult/apt/sidMichael Vogt
2010-01-31* cmdline/acqprogress.cc:Michael Vogt
- Set Mode to Medium so that the correct prefix is used. Thanks Stefan Haller for the patch! (Closes: #567304 LP: #275243) * ftparchive/writer.cc: - generate sha1 and sha256 checksums for dsc (Closes: #567343) * cmdline/apt-get.cc: - don't mark as manually if in download only (Closes: #468180)
2010-01-30cleanup the error header a bit by moving the printf-macros outDavid Kalnischkies
and remove the using std::string
2010-01-30* apt-pkg/contrib/macros.h:David Kalnischkies
- move the header system.h with a new name to the public domain, to be able to use it in other headers (Closes: #567662)
2010-01-23* apt-pkg/contrib/fileutl.cc:Michael Vogt
- Fix the newly introduced method GetListOfFilesInDir to not accept every file if no extension is enforced (= restore old behaviour). (Closes: #565213) * apt-pkg/policy.cc: - accept also partfiles with "pref" file extension as valid * apt-pkg/contrib/configuration.cc: - accept also partfiles with "conf" file extension as valid * doc/apt.conf.5.xml: - reorder description and split out syntax - add partfile name convention (Closes: #558348) * doc/apt_preferences.conf.5.xml: - describe partfile name convention also here * apt-pkg/deb/dpkgpm.cc: - don't segfault if term.log file can't be opened. Thanks Sam Brightman for the patch! (Closes: #475770) * doc/*: - replace the per language addendum with a global addendum - add a explanation why translations include (maybe) english parts to the new global addendum (Closes: #561636) * apt-pkg/contrib/strutl.cc: - fix malloc asseration fail with ja_JP.eucJP locale in apt-cache search. Thanks Kusanagi Kouichi! (Closes: #548884)
2010-01-22* apt-pkg/contrib/cdromutl.cc:Michael Vogt
- fix UnmountCdrom() fails, give it a bit more time and try the umount again
2010-01-22mark the Error methods as __coldDavid Kalnischkies
2010-01-22add a few gcc helpers, including [un]likely() and __deprecatedDavid Kalnischkies
2010-01-20* apt-pkg/contrib/strutl.cc:David Kalnischkies
- fix malloc asseration fail with ja_JP.eucJP locale in apt-cache search. Thanks Kusanagi Kouichi! (Closes: #548884)
2010-01-16Fix the newly introduced method GetListOfFilesInDir to not accept everyDavid Kalnischkies
file if no extension is enforced (= restore old behaviour). (Closes: #565213) This commit includes also: * apt-pkg/policy.cc: - accept also partfiles with "pref" file extension as valid * apt-pkg/contrib/configuration.cc: - accept also partfiles with "conf" file extension as valid * doc/apt.conf.5.xml: - reorder description and split out syntax - add partfile name convention (Closes: #558348) * doc/apt_preferences.conf.5.xml: - describe partfile name convention also here And a lovely test application of course.
2010-01-13merge with lp:~mvo/apt/debian-sid to get 0.7.25.1 and my changes backDavid Kalnischkies
2010-01-08fix merge errorMichael Vogt
2010-01-08* French manpage translation updateMichael Vogt
* spot & fix various typos in all manpages * German manpage translation update * cmdline/apt-cache.cc: - remove translatable marker from the "%4i %s\n" string * buildlib/po4a_manpage.mak: - instruct debiandoc to build files with utf-8 encoding * buildlib/tools.m4: - fix some warning from the buildtools * apt-pkg/acquire-item.cc: - add configuration PDiffs::Limit-options to not download too many or too big patches (Closes: #554349) * debian/control: - let all packages depend on ${misc:Depends} * share/*-archive.gpg: - remove the horrible outdated files. We already depend on the keyring so we don't need to ship our own version * cmdline/apt-key: - errors out if wget is not installed (Closes: #545754) - add --keyring option as we have now possibly many * methods/gpgv.cc: - pass all keyrings (TrustedParts) to gpgv instead of using only one trusted.gpg keyring (Closes: #304846) * methods/https.cc: - finally merge the rest of the patchset from Arnaud Ebalard with the CRL and Issuers options, thanks! (Closes: #485963)
2010-01-03Add a GetListOfFilesInDir() helper method which replaces the oldDavid Kalnischkies
code copies used to load the various parts-files
2009-12-23merge Goswin Brederlow "support download of index files for different archs"David Kalnischkies
patch which includes the following big changes: - Declare the unused [vendor] field in sources.list as option field, e.g. deb [arch=amd64,i386 lang=en_GB have=fun] http://example.org - When fetching index files download them for all APT::Architectures (overrideable with the options field above) - Allow all architectures of APT::Architectures to be in the Cache - Add the architecture to status and progress informations - Add b= (Binary architecture) to policy This commit doesn't incude the "pin-hack" as the Group structure will take care of this (and does it already to some extend).
2009-12-19mark the Error/Warning method as __coldDavid Kalnischkies
2009-12-19add optional gcc features as deprecated, unused and (un)likelyDavid Kalnischkies
2009-12-10merge with lp:~mvo/apt/debian-sid : move all my ABI break changesDavid Kalnischkies
to the "new" 0.7.26 version
2009-12-10merged -r1887..1901 from lp:~donkult/apt/sidMichael Vogt
2009-12-10* merge lp:~mvo/apt/netrc branch, this adds support for aMichael Vogt
/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. * apt-pkg/deb/dpkgpm.cc: - add "purge" to list of known actions
2009-12-07if "/" is found in the machine, do a uri.startswith(host) substring match to ↵Michael Vogt
support multiple user/passwds on the same host
2009-12-04* apt-pkg/contrib/netrc.cc:Michael Vogt
- check for hostname and then host+path - better debug output * methods/https.cc: - fix bug in netrc integration
2009-11-25another round of method hardening with const& in ConfigurationDavid Kalnischkies
2009-11-25merge my rred-rewrite branch & add it's changes to the changelogDavid Kalnischkies
2009-11-09extent the mmap to be able to handle currently not implementedDavid Kalnischkies
(but planed) growable mmaps
2009-10-24Avoid extra inner copy in APT_MKSTRCMP and APT_MKSTRCMP2David Kalnischkies
Backported from lp:~mvo/apt/debian-experimental Patch by Eugene V. Lyubimkin
2009-10-16add ftp support, basic debuggingMichael Vogt
2009-10-16port netrc support from maemonMichael Vogt