summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/strutl.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'mvo/bugfix/coverity' into debian/sidMichael Vogt2013-08-221-0/+2
|\ | | | | | | | | Conflicts: apt-pkg/tagfile.h
| * some more coverity fixesMichael Vogt2013-08-121-0/+2
| |
* | squash merge of the feature/apt-binary branch without the changes from ↵Michael Vogt2013-08-121-0/+12
|/ | | | experimental
* fix another missing va_end()Michael Vogt2013-07-261-3/+3
|
* support \n and \r\n line endings in ReadMessagesDavid Kalnischkies2013-06-201-2/+3
|
* merged patch from Daniel Hartwig to fix URI and proxy releated issuesMichael Vogt2013-05-081-4/+5
|
* merged bundle from davidMichael Vogt2013-04-081-4/+4
|\
| * various simple changes to fix cppcheck warningsDavid Kalnischkies2013-03-101-4/+4
| |
* | split out a method to strip whitespaces only on the right sideMichael Vogt2013-03-151-1/+7
|/
* * apt-pkg/contrib/strutl.cc:David Kalnischkies2012-04-211-20/+37
| | | - remove the message size limit from ioprintf and strprintf
* as we parse datestrings from external sources a lot specify the lengthDavid Kalnischkies2012-03-051-3/+3
| | | | | of the integer fields as well to avoid crashes in scanf as cppchecks warns: "(warning) scanf without field width limits can crash with huge input data"
* merge with my debian-sid branchDavid Kalnischkies2011-10-301-8/+7
|\
| * convert a few for-loop char finds to proper strchr and memchrDavid Kalnischkies2011-09-211-8/+7
| |
* | merge with debian/experimentalDavid Kalnischkies2011-09-131-12/+73
|\|
| * cppcheck complains about some possible speed improvements which could beDavid Kalnischkies2011-08-111-15/+15
| | | | | | | | | | | | done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
| * fix typos in changelog, make DeEscapeString const, improve descriptionMichael Vogt2011-07-261-3/+3
| |
| * add another escape test case, fixup octal one (its \0XX instead of \0XXX)Michael Vogt2011-07-261-5/+4
| |
| * apt-pkg/contrib/strutl.cc: kill unneeded debug outputMichael Vogt2011-07-261-1/+0
| |
| * * apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc:Michael Vogt2011-07-261-0/+63
| | | | | | | | - add new DeEscapeString() similar to DeQuoteQuotedWord but unescape charackter escapes like \0XXX and \xXX (plus add test)
* | Support large files in the complete toolset. Indexes of thisDavid Kalnischkies2011-09-131-0/+28
| | | | | | | | size are pretty unlikely for now, but we need it for deb packages which could become bigger than 4GB now (LP: #815895)
* | reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-131-3/+3
|/
* let TimeRFC1123 return an empty string if gmtime() failsDavid Kalnischkies2011-04-021-2/+4
|
* impossible to be too long but just to be sure use snprintfDavid Kalnischkies2011-04-021-1/+1
|
* merge 'after squeeze release'-stuffDavid Kalnischkies2011-02-031-0/+17
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ 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/+17
| |\ | | | | | | | | | - 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/+18
| |/
* / add support for third party changelogsMichael Vogt2010-11-161-0/+9
|/
* * apt-pkg/contrib/strutl.cc:David Kalnischkies2010-09-281-2/+2
| | | - add a space between number and unit as required by SI (Closes: #598352)
* * apt-pkg/contrib/strutl.cc:David Kalnischkies2010-08-161-1/+1
| | | | | | | - 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
* be sure that the RFC1123StrToTime method is run in a LANG=C environmentDavid Kalnischkies2010-06-091-2/+6
|
* 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-081-0/+36
| | | | - 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-6/+15
| | | | | | | | | 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-3/+3
|
* replace every call to toupper with one to our own tolower_asciiDavid Kalnischkies2010-03-301-23/+26
| | | | | | | | | | 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/+18
|\
| * dd support for the LANGUAGE environment variableDavid Kalnischkies2010-02-181-0/+18
| |
| * * 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)
* | Change the package index Info methods to allow apt-cache policy to beMichael Vogt2010-02-181-0/+12
| | | | | | | | useful when using several different archives on the same host. (Closes: #329814, LP: #22354)
* | * apt-pkg/contrib/fileutl.cc:Michael Vogt2010-01-231-16/+33
|/ | | | | | | | | | | | | | | | | | | | | | | | - 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)
* 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
* [apt-pkg/contrib/strutl.cc] enable thousand separator according toDavid Kalnischkies2009-07-311-2/+2
| | | | the current locale. Patch from Luca Bruno (Closes: #223712)
* * apt-pkg/acquire.cc:Michael Vogt2009-07-211-1/+27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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/+11
| | | | | | | | | | hash by using locale independant tolower_ascii() function. Thanks to M. Vefa Bicakci (LP: #80248)
| * * apt-pkg/contrib/strutl.cc:Michael Vogt2009-01-081-5/+9
| | | | | | - fix TimeToStr i18n (LP: #289807)
| * apt-pkg/contrib/strutl.cc: increase the size limitMichael Vogt2008-12-091-2/+2
| |
| * * apt-pkg/indexrecords.cc:Michael Vogt2008-12-081-0/+15
| | | | | | | | | | - 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/+11
| |
* | * apt-pkg/contrib/strutl.cc:Michael Vogt2009-04-091-5/+9
|/ | | | | | | | | | | | | | | | | | | - 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).
* Applying #298821 patch for further arbitary typosLuca Bruno2008-10-031-2/+2
|