summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/strutl.h
Commit message (Collapse)AuthorAgeFilesLines
* merge 'after squeeze release'-stuffDavid Kalnischkies2011-02-031-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ David Kalnischkies ] * apt-pkg/depcache.cc: - add SetCandidateRelease() to set a candidate version and the candidates of dependencies if needed to a specified release (Closes: #572709) * cmdline/apt-get.cc: - if --print-uris is used don't setup downloader as we don't need progress, lock nor the directories it would create otherwise - show dependencies of essential packages which are going to remove only if they cause the remove of this essential (Closes: #601961) - keep not installed garbage packages uninstalled instead of showing in the autoremove section and installing those (Closes: #604222) - change pkg/release behavior to use the new SetCandidateRelease so installing packages from experimental or backports is easier - really do not show packages in the extra section if they were requested on the commandline, e.g. with a modifier (Closes: #184730) * debian/control: - add Vcs-Browser now that loggerhead works again (Closes: #511168) - depend on debhelper 7 to raise compat level - depend on dpkg-dev (>= 1.15.8) to have c++ symbol mangling * apt-pkg/contrib/fileutl.cc: - add a RealFileExists method and check that your configuration files are real files to avoid endless loops if not (Closes: #604401) - ignore non-regular files in GetListOfFilesInDir (Closes: #594694) * apt-pkg/contrib/weakptr.h: - include stddefs.h to fix compile error (undefined NULL) with gcc-4.6 * methods/https.cc: - fix CURLOPT_SSL_VERIFYHOST by really passing 2 to it if enabled * deb/dpkgpm.cc: - fix popen/fclose mismatch reported by cppcheck. Thanks to Petter Reinholdtsen for report and patch! (Closes: #607803) * doc/apt.conf.5.xml: - fix multipl{y,e} spelling error reported by Jakub Wilk (Closes: #607636) * apt-inst/contrib/extracttar.cc: - let apt-utils work with encoded tar headers if uid/gid are large. Thanks to Nobuhiro Hayashi for the patch! (Closes: #330162) * apt-pkg/cacheiterator.h: - do not segfault if cache is not build (Closes: #254770) * doc/apt-get.8.xml: - remove duplicated mentioning of --install-recommends * doc/sources.list.5.xml: - remove obsolete references to non-us (Closes: #594495) * debian/rules: - use -- instead of deprecated -u for dh_gencontrol - remove shlibs.local creation and usage - show differences in the symbol files, but never fail * pre-build.sh: - remove as it is not needed for a working 'bzr bd' * debian/{apt,apt-utils}.symbols: - ship experimental unmangled c++ symbol files * methods/rred.cc: - operate optional on gzip compressed pdiffs * apt-pkg/acquire-item.cc: - don't uncompress downloaded pdiff files before feeding it to rred - try downloading clearsigned InRelease before trying Release.gpg - change the internal handling of Extensions in pkgAcqIndex - add a special uncompressed compression type to prefer those files - download and use i18n/Index to choose which Translations to download * cmdline/apt-key: - don't set trustdb-name as non-root so 'list' and 'finger' can be used without being root (Closes: #393005, #592107) * apt-pkg/deb/deblistparser.cc: - rewrite LoadReleaseInfo to cope with clearsigned Releasefiles * ftparchive/writer.cc: - add config option to search for more patterns in release command - include Index files by default in the Release file * methods/{gzip,bzip}.cc: - print a good error message if FileSize() is zero * apt-pkg/aptconfiguration.cc: - remove the inbuilt Translation files whitelist
| * * apt-inst/contrib/extracttar.cc:David Kalnischkies2011-01-131-0/+1
| |\ | | | | | | | | | - let apt-utils work with encoded tar headers if uid/gid are large. Thanks to Nobuhiro Hayashi for the patch! (Closes: #330162)
| | * Permit base256 encoded value in the numeric field of tar header.Nobuhiro Hayashi2010-12-031-0/+1
| |/
* / add support for third party changelogsMichael Vogt2010-11-161-0/+1
|/
* move the users away from the deprecated StrToTime() methodDavid Kalnischkies2010-06-091-2/+2
|
* * apt-pkg/contrib/strutl.cc:David Kalnischkies2010-06-081-1/+3
| | | | - split StrToTime() into HTTP1.1 and FTP date parser methods and use strptime() instead of some selfmade scanf mangling
* Userinfo is urlencoded in URIs (RFC 3986)David Kalnischkies2010-03-311-0/+1
| | | | | | | | | 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-301-1/+1
|
* replace every call to toupper with one to our own tolower_asciiDavid Kalnischkies2010-03-301-15/+6
| | | | | | | | | | 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 from the lp:~donkult/apt/sid branchMichael Vogt2010-02-181-0/+1
|\
| * dd support for the LANGUAGE environment variableDavid Kalnischkies2010-02-181-0/+1
| |
* | Change the package index Info methods to allow apt-cache policy to beMichael Vogt2010-02-181-0/+1
|/ | | | useful when using several different archives on the same host. (Closes: #329814, LP: #22354)
* 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
* Apply patch from Sami Liedes <sliedes@cc.hut.fi> to avoid unecessaryOtavio Salvador2009-07-251-0/+1
| | | temporary allocations.
* * apt-pkg/acquire.cc:Michael Vogt2009-07-211-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
| * fix problematic use of tolower() when calculating the version Michael Vogt2009-04-231-0/+1
| | | | | | | | | | hash by using locale independant tolower_ascii() function. Thanks to M. Vefa Bicakci (LP: #80248)
| * * apt-pkg/indexrecords.cc:Michael Vogt2008-12-081-0/+1
| | | | | | | | | | - fix some i18n issues * apt-pkg/contrib/strutl.h: - add new strprintf() function to make i18n strings easier
* | merge r1797 from lp:~donkult/apt/experimentalMichael Vogt2009-06-291-0/+1
|/
* * fixed compile errors with g++ 7.3 (thanks to Michael Vogt2007-06-191-0/+1
| | | | | Daniel Burrows, closes: #429378) * fix FTFBFS by changing build-depends to libcurl4-gnutls-dev (closes: #428363)
* * merged the no-pragma branchMichael Vogt2006-12-141-3/+1
|\
| * * removed the pragma messMichael Vogt2006-10-021-3/+1
| |
* | * merged with apt--mvoMichael Vogt2005-11-301-13/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * * applied parts of the string speedup patch from debian #319377 (ABI change)Michael Vogt2005-11-231-13/+13
| |
* | Port DDTP to APT 0.6 branchOtavio Salvador2005-03-231-1/+2
|/
* Add safe_snprintfArch Librarian2004-09-201-1/+4
| | | | | | Author: jgg Date: 2003-02-02 22:20:27 GMT Add safe_snprintf
* Restored GCC 2.95 compilabilityArch Librarian2004-09-201-4/+12
| | | | | | Author: jgg Date: 2001-05-29 05:09:44 GMT Restored GCC 2.95 compilability
* Reverted CheckDomainList and LookupTag while adding new...Arch Librarian2004-09-201-3/+18
| | | | | | Author: jgg Date: 2001-05-29 04:40:34 GMT Reverted CheckDomainList and LookupTag while adding new comparision functions for iterators
* Changed comparision operatorsArch Librarian2004-09-201-8/+10
| | | | | | Author: jgg Date: 2001-05-27 05:55:27 GMT Changed comparision operators
* Ensure the memory buffer is 0'dArch Librarian2004-09-201-6/+14
| | | | | | Author: jgg Date: 2001-05-27 05:19:30 GMT Ensure the memory buffer is 0'd
* Alfredo's no_proxy patchArch Librarian2004-09-201-1/+2
| | | | | | Author: jgg Date: 2001-02-23 05:45:27 GMT Alfredo's no_proxy patch
* Join with aliencodeArch Librarian2004-09-201-4/+34
| | | | | | Author: jgg Date: 2001-02-20 07:03:16 GMT Join with aliencode
* A few functions migrated aroundArch Librarian2004-09-201-1/+3
| | | | | | Author: jgg Date: 1999-08-02 03:07:47 GMT A few functions migrated around
* Minor cleanups, fix for checksum lowercase bugArch Librarian2004-09-201-1/+2
| | | | | | Author: jgg Date: 1999-07-26 17:46:07 GMT Minor cleanups, fix for checksum lowercase bug
* Fixed return result problemArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1999-05-27 05:54:41 GMT Fixed return result problem
* Clean supportArch Librarian2004-09-201-1/+2
| | | | | | Author: jgg Date: 1999-02-01 08:11:57 GMT Clean support
* Moved strutl.hArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1999-01-27 02:48:52 GMT Moved strutl.h
* Http methodArch Librarian2004-09-201-2/+7
| | | | | | Author: jgg Date: 1998-11-04 07:10:49 GMT Http method
* New http methodArch Librarian2004-09-201-5/+10
| | | | | | Author: jgg Date: 1998-11-01 05:27:29 GMT New http method
* SyncArch Librarian2004-09-201-2/+17
| | | | | | Author: jgg Date: 1998-10-30 07:53:30 GMT Sync
* SyncArch Librarian2004-09-201-1/+2
| | | | | | Author: jgg Date: 1998-10-23 00:49:58 GMT Sync
* SyncArch Librarian2004-09-201-3/+6
| | | | | | Author: jgg Date: 1998-10-22 04:56:38 GMT Sync
* Start on acquire stuffArch Librarian2004-09-201-1/+4
| | | | | | Author: jgg Date: 1998-10-20 02:39:12 GMT Start on acquire stuff
* SyncArch Librarian2004-09-201-1/+2
| | | | | | Author: jgg Date: 1998-09-22 05:30:24 GMT Sync
* DumpAvail works and apt-cache is completeArch Librarian2004-09-201-1/+2
| | | | | | Author: jgg Date: 1998-07-19 04:22:00 GMT DumpAvail works and apt-cache is complete
* Config class and source listArch Librarian2004-09-201-1/+3
| | | | | | Author: jgg Date: 1998-07-09 05:12:27 GMT Config class and source list
* SyncArch Librarian2004-09-201-0/+36
Author: jgg Date: 1998-07-07 04:17:00 GMT Sync