summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* * apt-pkg/acquire-methods.cc:David Kalnischkies2012-05-142-13/+13
| | | - factor out into private Dequeue() to fix access to deleted pointer
* * apt-pkg/pkgcachegen.cc:David Kalnischkies2012-05-121-2/+2
| | | | - make IsDuplicatedDescription static so that it is really private as we don't need a symbol for it as it is not in a header
* * apt-pkg/algorithms.cc:David Kalnischkies2012-05-102-12/+29
| | | | - factor out of ListUpdate a AcquireUpdate to be able to provide your own pkgAcquire fetcher to the wrapper
* ensure that d is set before accessing itDavid Kalnischkies2012-05-101-41/+50
|
* fix calling style of FileFd (no functional change)David Kalnischkies2012-05-101-3/+3
|
* ensure that in error conditions the Fail flag is setDavid Kalnischkies2012-05-101-3/+46
|
* collect zombie (de)compressor processes on reopenDavid Kalnischkies2012-05-101-1/+14
|
* ensure that we do init d only once and especially not with its ownDavid Kalnischkies2012-05-091-5/+6
| | | | content as this causes some "interesting" hickups resulting in segfaults as it seems (Closes: #554387, #670979)
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-05-091-3/+3
| | | - use NULL instead of "" for no (un)compress parameters
* * apt-pkg/contrib/fileutl.cc:David Kalnischkies2012-05-091-3/+7
| | | - check that the fd which are closed are valid
* * apt-pkg/acquire-worker.cc:YOSHINO Yoshihito2012-05-071-3/+10
| | | | | | - revert the use of FileFd::Write in OutFdReady as we don't want error reports about EAGAIN here as we retry later. Thanks to YOSHINO Yoshihito for the report. (Closes: #671721)
* ensure that apti18n.h is included last as advertised (Closes: #671623)David Kalnischkies2012-05-052-3/+4
|
* check if we work on a valid description in IsDuplicateDescription asDavid Kalnischkies2012-05-051-2/+2
| | | | we end up working on dangling pointers otherwise which segfaults on s390x and ppc64 (Closes: #669427)
* * apt-pkg/deb/deblistparser.cc:David Kalnischkies2012-05-021-5/+12
| | | - check length and containing chars for a given description md5sum
* * apt-pkg/pkgcachegen.cc:David Kalnischkies2012-05-021-0/+6
| | | - check if NewDescription allocation has failed and error out accordingly
* provider is only a possible solution if the provides has the rightDavid Kalnischkies2012-04-231-1/+1
| | | | version (or none as we have no versioned provides in debian) and not if the version of the provider matches
* /dev/null is a special absolute path as it has no subdirectoriesDavid Kalnischkies2012-04-231-0/+9
|
* normalize a bit by replacing // and /./ with / in FindFileDavid Kalnischkies2012-04-231-30/+38
|
* * edsp/edspsystem.cc:David Kalnischkies2012-04-231-1/+1
| | | | - check with RealFileExists for scenario file as otherwise a directory like one provided with RootDir triggers the usage of EDSP
* * apt-pkg/depcache.cc:David Kalnischkies2012-04-231-12/+13
| | | | | - clearly separate 'positive' and 'negative' dependencies and their upgrade-resolution tries in MarkInstall and especially don't treat Conflicts differently compared to Breaks here
* * apt-pkg/cdrom.cc:David Kalnischkies2012-04-221-19/+2
| | | - use Dump() to generate the configuration output
* * apt-pkg/acquire-worker.cc:David Kalnischkies2012-04-221-30/+9
| | | - use Dump() to generate the configuration message for sending
* * apt-pkg/contrib/configuration.cc:David Kalnischkies2012-04-222-8/+66
| | | - add a more versatile Dump() method
* * apt-pkg/contrib/strutl.cc:David Kalnischkies2012-04-211-20/+37
| | | - remove the message size limit from ioprintf and strprintf
* merged from bzr+ssh://bazaar.launchpad.net/~donkult/apt/sid/Michael Vogt2012-04-201-2/+4
|\
| * fix a bug uncovered by the previous commit which checks if a CompressorDavid Kalnischkies2012-04-201-2/+4
| | | | | | | | | | preference given by the Order setting is really available before adding it as possible CompressionType.
* | merged from lp:~donkult/apt/sidMichael Vogt2012-04-207-22/+42
|\|
| * * apt-pkg/cacheset.cc:David Kalnischkies2012-04-201-2/+5
| | | | | | | | - actually return to the fallback modifier if we have detected we should for packagenames which look like modifiers (Closes: #669591)
| * * apt-pkg/contrib/sha2_internal.cc:David Kalnischkies2012-04-201-2/+6
| | | | | | | | | | - do not use the input data directly but memcpy it instead as it could be unaligned as in the http-transport which causes a sigbus error on sparc (Closes: #669061)
| * * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-04-201-12/+13
| | | | | | | | - if the compressor is not installed, but we link against it's library accept it as a CompressionType (Closes: #669328)
| * * apt-pkg/packagemanager.cc:Malcolm Scott2012-04-191-2/+2
| | | | | | | | | | - iterate over all pre-depends or-group member instead of looping endlessly over the first member in SmartUnpack (LP: #985852)
| * * apt-pkg/contrib/fileutl.cc:David Kalnischkies2012-04-191-0/+6
| | | | | | - redirect stderr from compressors to /dev/null
| * * apt-pkg/deb/deblistparser.cc:David Kalnischkies2012-04-181-2/+8
| | | | | | - only treat the native apt as essential by default
| * newer gcc versions seems to have no problem with that, but while workingDavid Kalnischkies2012-04-171-2/+2
| | | | | | | | with g++-4.1 it complains about this so lets be extra clear
* | merge from the lp:~mvo/apt/mvo branchMichael Vogt2012-04-201-1/+5
|\ \ | |/ |/|
| * cherry pick r1975 from lp:~ubuntu-core-dev/apt/ubuntuMichael Vogt2012-04-201-0/+1
| |
| * * apt-pkg/deb/dpkgpm.cc:Michael Vogt2012-03-271-1/+4
| | | | | | | | | | - do not crash if (*I).Pkg is NULL (LP: #939867)
* | * apt-pkg/packagemanager.cc:David Kalnischkies2012-04-161-1/+1
| | | | | | | | - init counter in SmartConfigure so that the loop-breaker isn't triggered at random… (Closes: #669060)
* | apt-pkg/packagemanager.cc: tweak MaxLoopCount to 500 and improve the error ↵Michael Vogt2012-04-121-3/+3
| | | | | | | | message
* | merged from donkults experimental branchMichael Vogt2012-04-1111-64/+206
|\ \ | |/ |/|
| * use a static FileFd::Write overload to reduce duplication of write()-retry codeDavid Kalnischkies2012-04-115-66/+34
| |
| * use xz-utils in the testcases instead of lzma and ensure that we reallyDavid Kalnischkies2012-04-111-1/+1
| | | | | | | | ignore the presents (or absence) of lzma if we decided to use xz
| * - add libbz2-dev as new build-dependencyDavid Kalnischkies2012-04-053-11/+110
| | | | | | | | | | | | | | | | - remove the libz-dev alternative from zlib1g-dev build-dependency - do the same for bz2 builtin if available * apt-pkg/contrib/fileutl.cc: - use libz2 library for (de)compression instead of the bzip2 binary as the first is a dependency of dpkg and the later just priority:optional so we gain 'easier' access to bz2-compressed Translation files this way
| * if we have zlib builtin insert add a dummy gzip compressor for FileFDDavid Kalnischkies2012-04-052-1/+4
| |
| * * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-04-051-6/+27
| | | | | | - if present, prefer xz binary over lzma
| * detect zlib correctly. We still don't allow to build without it to remainDavid Kalnischkies2012-04-051-19/+13
| | | | | | | | | | compatible with users accessing it directly, but this prepares for a drop of this strict requirement in the future
| * make these retry_write methods static so that they don't end up as symbolsDavid Kalnischkies2012-03-221-1/+2
| |
| * the previously used VERSION didn't work everywhere so we are switchingDavid Kalnischkies2012-03-221-1/+1
| | | | | | | | to the more standard PACKAGE_VERSION and make it work in every file
| * * methods/rred.cc:David Kalnischkies2012-03-201-8/+28
| | | | | | | | | | | | | | | | | | | | | | - check return of writev() as gcc recommends * methods/mirror.cc: - check return of chdir() as gcc recommends * apt-pkg/deb/dpkgpm.cc: - check return of write() a gcc recommends * apt-inst/deb/debfile.cc: - check return of chdir() as gcc recommends * apt-inst/deb/dpkgdb.cc: - check return of chdir() as gcc recommends
| * * apt-pkg/acquire-worker.cc:David Kalnischkies2012-03-205-10/+46
| | | | | | | | | | | | | | | | | | | | | | - check return of write() as gcc recommends * apt-pkg/acquire.cc: - check return of write() as gcc recommends * apt-pkg/cdrom.cc: - check return of chdir() and link() as gcc recommends * apt-pkg/clean.cc: - check return of chdir() as gcc recommends * apt-pkg/contrib/netrc.cc: - check return of asprintf() as gcc recommends