summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/strutl.cc
AgeCommit message (Collapse)Author
2010-08-16* apt-pkg/contrib/strutl.cc:David Kalnischkies
- fix error checking for vsnprintf in its safe variant Spotted by -Wextra: contrib/strutl.cc: In function 'char* safe_snprintf(char*, char*, const char*, ...)': contrib/strutl.cc:1172:14: warning: comparison of unsigned expression < 0 is always false
2010-06-09be sure that the RFC1123StrToTime method is run in a LANG=C environmentDavid 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-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-02-18merge from the lp:~donkult/apt/sid branchMichael Vogt
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-18dd support for the LANGUAGE environment variableDavid Kalnischkies
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-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)
2009-09-08replace unknown multibytes with ? in UTF8ToCharset (Closes: #545208)David Kalnischkies
instead of ignoring the returncode and truncating the string on error
2009-07-31[apt-pkg/contrib/strutl.cc] enable thousand separator according toDavid Kalnischkies
the current locale. Patch from Luca Bruno (Closes: #223712)
2009-07-21* apt-pkg/acquire.cc:Michael Vogt
- make the max pipeline depth of the acquire queue configurable via Acquire::Max-Pipeline-Depth * apt-pkg/deb/dpkgpm.cc: - add Dpkg::UseIoNice boolean option to run dpkg with ionice -c3 (off by default) - send "dpkg-exec" message on the status fd when dpkg is run - provide DPkg::Chroot-Directory config option (useful for testing) - fix potential hang when in a backgroud process group * apt-pkg/algorithms.cc: - consider recommends when making the scores for the problem resolver * apt-pkg/acquire-worker.cc: - show error details of failed methods * apt-pkg/contrib/fileutl.cc: - if a process aborts with signal, show signal number * methods/http.cc: - ignore SIGPIPE, we deal with EPIPE from write in HttpMethod::ServerDie() (LP: #385144) * apt-pkg/indexcopy.cc: - support having CDs with no Packages file (just a Packages.gz) by not forcing a verification on non-existing files (LP: #255545) - remove the gettext from a string that consists entirely of variables (LP: #56792) * apt-pkg/cacheiterators.h: - add missing checks for Owner == 0 in end() * apt-pkg/indexrecords.cc: - fix some i18n issues * apt-pkg/contrib/strutl.h: - add new strprintf() function to make i18n strings easier - fix compiler warning * apt-pkg/deb/debsystem.cc: - make strings i18n able * fix problematic use of tolower() when calculating the version hash by using locale independant tolower_ascii() function. Thanks to M. Vefa Bicakci (LP: #80248) * build fixes for g++-4.4 * cmdline/apt-mark: - add "showauto" option to show automatically installed packages * document --install-recommends and --no-install-recommends (thanks to Dereck Wonnacott, LP: #126180) * Updated cron script to support backups by hardlinks and verbose levels. All features turned off by default. * Added more error handlings. Closes: #438803, #462734, #454989, * Refactored condition structure to make download and upgrade performed if only previous steps succeeded. Closes: #341970 * Documented all cron script related configuration items in configure-index. * apt-ftparchive might write corrupt Release files (LP: #46439) * Apply --important option to apt-cache depends (LP: #16947)
2009-06-29merge r1797 from lp:~donkult/apt/experimentalMichael Vogt
2009-04-23fix problematic use of tolower() when calculating the version Michael Vogt
hash by using locale independant tolower_ascii() function. Thanks to M. Vefa Bicakci (LP: #80248)
2009-04-09* apt-pkg/contrib/strutl.cc:Michael Vogt
- fix TimeToStr i18n (LP: #289807) * [ABI break] merge support for http redirects, thanks to Jeff Licquia and Anthony Towns * [ABI break] use int for the package IDs (thanks to Steve Cotton) * apt-pkg/pkgcache.cc: - do not run "dpkg --configure pkg" if pkg is in trigger-awaited state (LP: #322955) * methods/https.cc: - add Acquire::https::AllowRedirect support * Clarify the --help for 'purge' (LP: #243948) * cmdline/apt-get.cc - fix "apt-get source pkg" if there is a binary package and a source package of the same name but from different packages (LP: #330103) * cmdline/acqprogress.cc: - Call pkgAcquireStatus::Pulse even if quiet, so that we still get dlstatus messages on the status-fd (LP: #290234).
2009-01-08* apt-pkg/contrib/strutl.cc:Michael Vogt
- fix TimeToStr i18n (LP: #289807)
2008-12-09apt-pkg/contrib/strutl.cc: increase the size limitMichael Vogt
2008-12-08* apt-pkg/indexrecords.cc:Michael Vogt
- fix some i18n issues * apt-pkg/contrib/strutl.h: - add new strprintf() function to make i18n strings easier
2008-10-03Applying #298821 patch for further arbitary typosLuca Bruno
2008-10-03Fix some typos in docs and translations (thanks to timeless, closes: 368665)Luca Bruno
2008-04-02Fix ReadMessages to handle messages that are longer than 64000 bytes.Daniel Burrows
There's a bug in this code that needs to be fixed, but it existed prior to this change.
2007-12-08* Applied patch from Alexander Winston <alexander.winston@comcast.net>Otavio Salvador
to use 'min' as symbol for minute, closes: #219034.
2007-06-08* Removed the more leftover #pragma interface/implementationMichael Vogt
closes: #306937 (thanks to Andreas Henriksson for the patch)
2007-06-08* remove all the remaining #pragma implementationMichael Vogt
2007-06-08* add "purge" commandline argument, closes: #133421)Michael Vogt
(thanks to Julien Danjou for the patch) * fix FTBFS with gcc 4.3, closes: #417090 (thanks to Martin Michlmayr for the patch) * add --dsc-only option, thanks to K. Richard Pixley
2007-06-08* fix FTBFS with gcc 4.3, closes: #417090Michael Vogt
(thanks to Martin Michlmayr for the patch)
2005-11-30* merged with apt--mvoMichael Vogt
Patches applied: * apt@packages.debian.org/apt--sources-list-d--0--base-0 tag of apt@packages.debian.org/apt--main--0--patch-30 * apt@packages.debian.org/apt--sources-list-d--0--patch-1 Patch from apt-rpm via Michael Vogt to implement /etc/apt/sources.list.d * bubulle@debian.org--2005/apt--main--0--patch-130 Galician translation completed * bubulle@debian.org--2005/apt--main--0--patch-131 Simplified Chinese translation update * bubulle@debian.org--2005/apt--main--0--patch-132 Completed Simplified Chinese translation * bubulle@debian.org--2005/apt--main--0--patch-133 Merge with Michael AND update PO files * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-90 * merged the sources.list.d patch * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-91 * merged with bubulle * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-92 * changelog update * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-93 * sources.list.d documented * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-94 * pkgDirStream has (slightly) better extract support now * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-95 * merge fix for #339533 * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-96 * merged with bubulle * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-97 * some more debug output * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-98 * ABI change: merged more flexible pkgAcquireFile code * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-99 * merged http download limit for apt (#146877) * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-100 * applied parts of the string speedup patch from debian #319377 (ABI change) * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-101 * fix for #340448 * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-102 * finalized this release * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-103 * changelog updates * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-104 * build-depend on libdb4.3 now, fix for kFreeBSD (#317718) * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-105 * fix mailaddress * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-106 * fix a string (thanks to bubulle) * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-107 * merged with bubulle
2005-11-23* applied parts of the string speedup patch from debian #319377 (ABI change)Michael Vogt
2005-03-23Remove a unused var.Otavio Salvador
2005-03-23Port DDTP to APT 0.6 branchOtavio Salvador
2004-09-20- Clean up some string handling, patch from Peter LundkvistArch Librarian
Author: mdz Date: 2003-07-18 14:15:11 GMT - Clean up some string handling, patch from Peter Lundkvist <p.lundkvist@telia.com> (Closes: #192225)
2004-09-20Add safe_snprintfArch Librarian
Author: jgg Date: 2003-02-02 22:20:27 GMT Add safe_snprintf
2004-09-20Test for timegm in configure.Arch Librarian
Author: doogie Date: 2002-11-22 07:15:23 GMT Test for timegm in configure.
2004-09-20Increase ReadMessages buffer. #111914Arch Librarian
Author: jgg Date: 2002-04-26 05:52:27 GMT Increase ReadMessages buffer. #111914
2004-09-20Fixed string parsing, Bug #100046Arch Librarian
Author: jgg Date: 2001-06-08 05:16:39 GMT Fixed string parsing, Bug #100046
2004-09-20Restored GCC 2.95 compilabilityArch Librarian
Author: jgg Date: 2001-05-29 05:09:44 GMT Restored GCC 2.95 compilability
2004-09-20Reverted CheckDomainList and LookupTag while adding new...Arch Librarian
Author: jgg Date: 2001-05-29 04:40:34 GMT Reverted CheckDomainList and LookupTag while adding new comparision functions for iterators
2004-09-20Reverted unnecessary string changesArch Librarian
Author: jgg Date: 2001-05-27 23:30:45 GMT Reverted unnecessary string changes
2004-09-20More ignoring of versionless packagesArch Librarian
Author: jgg Date: 2001-05-27 05:36:04 GMT More ignoring of versionless packages
2004-09-20Ensure the memory buffer is 0'dArch Librarian
Author: jgg Date: 2001-05-27 05:19:30 GMT Ensure the memory buffer is 0'd
2004-09-20Pedantic fixesArch Librarian
Author: jgg Date: 2001-03-11 07:22:19 GMT Pedantic fixes
2004-09-20Fixed warningArch Librarian
Author: jgg Date: 2001-02-23 06:08:57 GMT Fixed warning
2004-09-20Alfredo's no_proxy patchArch Librarian
Author: jgg Date: 2001-02-23 05:45:27 GMT Alfredo's no_proxy patch
2004-09-20Join with aliencodeArch Librarian
Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
2004-09-20More fixesArch Librarian
Author: jgg Date: 2000-01-16 05:36:17 GMT More fixes
2004-09-20More FixesArch Librarian
Author: jgg Date: 2000-01-14 06:26:36 GMT More Fixes
2004-09-20Fixed ftp resumeArch Librarian
Author: jgg Date: 2000-01-10 03:44:54 GMT Fixed ftp resume