summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
Commit message (Collapse)AuthorAgeFilesLines
* replace every call to toupper with one to our own tolower_asciiDavid Kalnischkies2010-03-304-46/+42
| | | | | | | | | | 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.
* merge MultiArch-ABI. We don't support MultiArch yet (as most other tools),David Kalnischkies2010-03-181-16/+16
|\ | | | | | | | | but we support the usage of the new ABI so libapt users can start to prepare for MultiArch (Closes: #536029)
| * criss-cross merge with my sid branchDavid Kalnischkies2010-02-182-11/+12
| |\
| * | Add support for the LANGUAGE environment variableDavid Kalnischkies2010-02-141-1/+1
| | |
| * | [BREAK] merge MultiArch-ABI. We don't support MultiArch,David Kalnischkies2010-02-133-16/+34
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * | merge Goswin Brederlow "support download of index files for different archs"David Kalnischkies2009-12-232-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
| | * | mark the Error/Warning method as __coldDavid Kalnischkies2009-12-191-4/+5
| | | |
| | * | add optional gcc features as deprecated, unused and (un)likelyDavid Kalnischkies2009-12-191-0/+22
| | | |
* | | | * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2010-03-122-1/+42
| | | | | | | | | | | | | | | | | | | | | | | | - if available store the Commandline in the history * apt-pkg/contrib/cmndline.cc: - save Commandline in Commandline::AsString for logging
* | | | * apt-pkg/contrib/mmap.{h,cc}:David Kalnischkies2010-02-272-11/+64
| | | | | | | | | | | | | | | | | | | | | | | | - 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)
* | | | merge from the lp:~donkult/apt/sid branchMichael Vogt2010-02-182-0/+19
|\ \ \ \ | | |_|/ | |/| |
| * | | dd support for the LANGUAGE environment variableDavid Kalnischkies2010-02-182-0/+19
| |/ /
* | | * [BREAK] merged lp:~mvo/apt/historyMichael Vogt2010-02-182-0/+13
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
| * | Change the package index Info methods to allow apt-cache policy to beMichael Vogt2010-02-182-0/+13
| | | | | | | | | | | | useful when using several different archives on the same host. (Closes: #329814, LP: #22354)
* | | merge with debian-sidDavid Kalnischkies2010-02-131-21/+30
|\| |
| * | merge r1966..1967 from lp:~donkult/apt/sidMichael Vogt2010-01-314-9/+7
| | |
| * | * cmdline/acqprogress.cc:Michael Vogt2010-01-312-23/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
| * | * apt-pkg/contrib/fileutl.cc:Michael Vogt2010-01-236-26/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
| * | * apt-pkg/contrib/cdromutl.cc:Michael Vogt2010-01-221-21/+30
| | | | | | | | | | | | - fix UnmountCdrom() fails, give it a bit more time and try the umount again
* | | cleanup the error header a bit by moving the printf-macros outDavid Kalnischkies2010-01-302-23/+16
| | | | | | | | | | | | and remove the using std::string
* | | * apt-pkg/contrib/macros.h:David Kalnischkies2010-01-305-10/+8
| | | | | | | | | | | | | | | - move the header system.h with a new name to the public domain, to be able to use it in other headers (Closes: #567662)
* | | mark the Error methods as __coldDavid Kalnischkies2010-01-221-4/+6
| | |
* | | add a few gcc helpers, including [un]likely() and __deprecatedDavid Kalnischkies2010-01-221-0/+22
| | |
* | | * apt-pkg/contrib/strutl.cc:David Kalnischkies2010-01-201-16/+33
| | | | | | | | | | | | | | | - fix malloc asseration fail with ja_JP.eucJP locale in apt-cache search. Thanks Kusanagi Kouichi! (Closes: #548884)
* | | Fix the newly introduced method GetListOfFilesInDir to not accept everyDavid Kalnischkies2010-01-163-6/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | merge with lp:~mvo/apt/debian-sid to get 0.7.25.1 and my changes backDavid Kalnischkies2010-01-133-34/+37
|\| |
| * | fix merge errorMichael Vogt2010-01-081-0/+2
| | |
| * | * French manpage translation updateMichael Vogt2010-01-083-39/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* | | Add a GetListOfFilesInDir() helper method which replaces the oldDavid Kalnischkies2010-01-033-37/+52
| | | | | | | | | | | | code copies used to load the various parts-files
* | | merge with lp:~mvo/apt/debian-sid : move all my ABI break changesDavid Kalnischkies2009-12-102-0/+240
|\| | | |/ |/| | | to the "new" 0.7.26 version
| * merged -r1887..1901 from lp:~donkult/apt/sidMichael Vogt2009-12-101-6/+6
| |\
| * \ * merge lp:~mvo/apt/netrc branch, this adds support for aMichael Vogt2009-12-102-0/+240
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | /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
| | * | if "/" is found in the machine, do a uri.startswith(host) substring match to ↵Michael Vogt2009-12-071-4/+8
| | | | | | | | | | | | | | | | support multiple user/passwds on the same host
| | * | * apt-pkg/contrib/netrc.cc:Michael Vogt2009-12-041-7/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - check for hostname and then host+path - better debug output * methods/https.cc: - fix bug in netrc integration
| | * | add ftp support, basic debuggingMichael Vogt2009-10-161-1/+4
| | | |
| | * | port netrc support from maemonMichael Vogt2009-10-162-0/+213
| | | |
* | | | another round of method hardening with const& in ConfigurationDavid Kalnischkies2009-11-252-30/+31
| | | |
* | | | merge my rred-rewrite branch & add it's changes to the changelogDavid Kalnischkies2009-11-252-45/+92
|\ \ \ \ | |_|_|/ |/| | |
| * | | extent the mmap to be able to handle currently not implementedDavid Kalnischkies2009-11-092-45/+92
| |/ / | | | | | | | | | (but planed) growable mmaps
* / / Avoid extra inner copy in APT_MKSTRCMP and APT_MKSTRCMP2David Kalnischkies2009-10-241-6/+6
|/ / | | | | | | | | Backported from lp:~mvo/apt/debian-experimental Patch by Eugene V. Lyubimkin
* | replace unknown multibytes with ? in UTF8ToCharset (Closes: #545208)David Kalnischkies2009-09-081-2/+13
| | | | | | | | instead of ignoring the returncode and truncating the string on error
* | reintroduce #clear and #include in the config files,David Kalnischkies2009-09-071-3/+5
| | | | | | | | they there broken since 0.7.21 with the introduction of #-comments
* | add a helper to easily get a vector of strings from the configurationDavid Kalnischkies2009-09-042-0/+22
| |
* | merge with apt-sidDavid Kalnischkies2009-08-081-1/+1
|\| | | | | | | * backout my fix for the sources.list issue, there is already one in
| * * apt-pkg/contrib/mmap.cc:Julian Andres Klode2009-08-021-1/+1
| | | | | | | | - Fix FTBFS on GNU/kFreeBSD by disabling DynamicMMap::Grow() on non-Linux architectures (as it uses mremap).
* | [apt-pkg/contrib/fileutl.cc] In function ExecWait(): fix compile warning:David Kalnischkies2009-08-031-0/+2
| | | | | | | | warning: suggest explicit braces to avoid ambiguous ‘else’
* | [apt-pkg/contrib/strutl.cc] enable thousand separator according toDavid Kalnischkies2009-07-311-2/+2
|/ | | | the current locale. Patch from Luca Bruno (Closes: #223712)
* merged from donkultMichael Vogt2009-07-271-1/+1
|\
| * merge with lp:apt/debian-sidDavid Kalnischkies2009-07-261-1/+1
| | | | | | | | | | Remove a bug (= an evil amok running if) introduced by the merge in 1817 which cause a segfault in the destructor for the dynamic mmap.
* | Apply patch from Sami Liedes <sliedes@cc.hut.fi> to avoid unecessaryOtavio Salvador2009-07-251-0/+1
|/ | | temporary allocations.