summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
Commit message (Collapse)AuthorAgeFilesLines
...
* | check the state of the FileFd before renaming as otherwise the renameDavid Kalnischkies2010-07-091-6/+8
| | | | | | | | | | will be tried twice e.g. in an "apt-get update" run and every other piece of code closing the FileFd manual before the destructor will do it again.
* | * doc/apt.conf.5.xml:David Kalnischkies2010-07-091-0/+2
| | | | | | - add and document APT::Cache-{Start,Grow,Limit} options for mmap control
* | * apt-pkg/pkgcachegen.{cc,h}:David Kalnischkies2010-07-081-9/+18
| | | | | | | | - make the used MMap moveable (and therefore dynamic resizeable) by applying (some) mad pointer magic (Closes: #195018)
* | merge with debian-experimental-maDavid Kalnischkies2010-07-052-6/+17
|\ \
| * | Fix the atomic replace.Julian Andres Klode2010-06-291-1/+1
| | |
| * | * apt-pkg/contrib/fileutl.cc:Julian Andres Klode2010-06-292-6/+17
| | | | | | | | | - Make FileFd replace files atomically in WriteTemp mode (for cache, etc).
* | | make the MMap Grow Error a fatal one as while in theory the code shouldDavid Kalnischkies2010-06-261-1/+1
| | | | | | | | | | | | never segfault it still tend to do it so better show it directly
* | | * apt-pkg/contrib/fileutl.cc:David Kalnischkies2010-06-261-0/+4
| | | | | | | | | | | | | | | - show notice about ignored file instead of being always silent - add a Dir::Ignore-Files-Silently list option to control the notice *
* | | - use the new MatchAgainstConfig for the DefaultRootSetFuncDavid Kalnischkies2010-06-262-1/+61
| | | | | | | | | | | | * apt-pkg/contrib/configuration.{cc,h}: - add a wrapper to match strings against configurable regex patterns
* | | add a simple stack handling to be able to delay error handlingDavid Kalnischkies2010-06-252-2/+65
| | |
* | | * apt-pkg/contrib/error.{cc,h}:David Kalnischkies2010-06-252-207/+356
|/ / | | | | | | - complete rewrite but use the same API - add NOTICE and DEBUG as new types of a message
* | be sure that the RFC1123StrToTime method is run in a LANG=C environmentDavid Kalnischkies2010-06-091-2/+6
| |
* | - backport forgotten Valid-Until patch from the obsolete experimentalDavid Kalnischkies2010-06-092-21/+55
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | branch to prevent replay attacks better, thanks to Thomas Viehmann for the initial patch! (Closes: #499897) * doc/apt.conf.5.xml: - document the new Valid-Until related options * apt-pkg/contrib/strutl.cc: - split StrToTime() into HTTP1.1 and FTP date parser methods and use strptime() instead of some self-made scanf mangling - use the portable timegm shown in his manpage instead of a strange looking code copycat from wget * ftparchive/writer.cc: - add ValidTime option to generate a Valid-Until header in Release file
| * | move the users away from the deprecated StrToTime() methodDavid Kalnischkies2010-06-091-2/+2
| | |
| * | use the portable timegm shown in his manpage instead of a strangeDavid Kalnischkies2010-06-091-20/+16
| | | | | | | | | looking code copycat from wget
| * | * apt-pkg/contrib/strutl.cc:David Kalnischkies2010-06-082-1/+39
| | | | | | | | | | | | - split StrToTime() into HTTP1.1 and FTP date parser methods and use strptime() instead of some selfmade scanf mangling
* | | * apt-pkg/contrib/cmdline.cc:David Kalnischkies2010-05-311-2/+2
|/ / | | | | - fix segfault in SaveInConfig caused by writing over char[] sizes
* | * contrib/mmap.cc:David Kalnischkies2010-05-131-2/+2
| | | | | | | | - clarify "MMap reached size limit" error message, thanks Ivan Masár!
* | * apt-pkg/contrib/weakptr.h:Julian Andres Klode2010-05-041-0/+62
| | | | | | | | | | | | - 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.
* | * apt-pkg/contrib/configuration.cc:David Kalnischkies2010-04-241-0/+2
| | | | | | - error out if #clear directive has no argument
* | * apt-pkg/contrib/fileutl.cc:David Kalnischkies2010-04-072-0/+55
| | | | | | | | | | | | | | | | | | | | - 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
* | remove the ABI compatible stub for GetListOfFilesInDirDavid Kalnischkies2010-04-042-9/+1
| |
* | Userinfo is urlencoded in URIs (RFC 3986)David Kalnischkies2010-03-312-6/+16
| | | | | | | | | | | | | | | | | | 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)
* | rename ExplodeString to VectorizeStringDavid Kalnischkies2010-03-302-4/+4
| |
* | 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
|\| |