summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* | add APT::pkgPackageManager::MaxLoopCount to ensure that theMichael Vogt2012-03-131-2/+12
|/ | | | ordering code does not get into a endless loop when it flip-flops between two states
* merged from lp:~donkult/apt/experimentalMichael Vogt2012-03-131-264/+327
|\
| * recheck dependencies in SmartUnpack after a change, tooDavid Kalnischkies2012-03-131-165/+196
| |
| * * apt-pkg/packagemanager.cc:David Kalnischkies2012-03-131-79/+111
| | | | | | | | - recheck all dependencies if we changed a package in SmartConfigure as this could break an earlier dependency (LP: #940396)
| * ensure that the fullname of a package is displayed in the debug outputDavid Kalnischkies2012-03-121-29/+29
| |
| * show which dependency couldn't be satisfied in the debug outputDavid Kalnischkies2012-03-071-1/+1
| |
* | * apt-pkg/packagemanager.cc:Michael Vogt2012-03-071-13/+13
|/ | | - fix inconsistent clog/cout usage in the debug output
* add Debug::pkgAcqArchive::NoQueue to disable package downloadingDavid Kalnischkies2012-03-061-1/+12
|
* merge with apt/experimentalDavid Kalnischkies2012-03-064-11/+38
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * apt-pkg/packagemanager.cc: - fix bug in predepends handling - ensure that packages that needs unpackaging are unpacked before they are configured (LP: #927993) [ Julian Andres Klode ] * apt-pkg/deb/deblistparser.cc: - Set the Essential flag on APT instead of only Important * apt-pkg/packagemanager.cc: - Do not use immediate configuration for packages with the Important flag * Treat the Important flag like the Essential flag with those differences: - No Immediate configuration (see above) - Not automatically installed during dist-upgrade - No higher score for installation ordering
| * * apt-pkg/packagemanager.cc:Michael Vogt2012-03-061-4/+13
| |\ | | | | | | | | | - fix bug in predepends handling - ensure that packages that needs unpackaging are unpacked before they are configured (LP: #927993)
| | * * apt-pkg/packagemanager.cc:Michael Vogt2012-03-021-4/+13
| | | | | | | | | | | | - when calculating pre-dependencies ensure that both unpack and configure are considered (instead of only configure) LP: #927993
| * | * Treat the Important flag like the Essential flag with two differences:Julian Andres Klode2012-03-053-4/+23
| | | | | | | | | | | | - No Immediate configuration (see above) - Not automatically installed during dist-upgrade
| * | * apt-pkg/packagemanager.cc:Julian Andres Klode2012-03-051-2/+1
| | | | | | | | | - Do not use immediate configuration for packages with the Important flag
| * | * apt-pkg/deb/deblistparser.cc:Julian Andres Klode2012-03-051-1/+1
| | | | | | | | | - Set the Essential flag on APT instead of only Important
* | | * apt-pkg/contrib/fileutl.cc:David Kalnischkies2012-03-061-0/+7
| | | | | | | | | - do not warn about the ignoring of directories (Closes: #662762)
* | | 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"
* | | set char-limits for the scanf parsing previous crash-reportsDavid Kalnischkies2012-03-051-1/+1
| | |
* | | fix a bunch of cppcheck "(warning) Member variable '<#>' is notDavid Kalnischkies2012-03-0413-27/+29
| | | | | | | | | | | | initialized in the constructor." messages (no functional change)
* | | handle a SIGINT in all modes as a break after the currently runningDavid Kalnischkies2012-03-041-3/+4
| | | | | | | | | dpkg transaction instead of ignoring it completely
* | | * apt-pkg/acquire-item.cc:David Kalnischkies2012-03-041-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - remove 'old' InRelease file if we can't get a new one before proceeding with Release.gpg to avoid the false impression of a still trusted repository by a (still present) old InRelease file. Thanks to Simon Ruderich for reporting this issue! (CVE-2012-0214) Effected are all versions >= 0.8.11 Possible attack summary: - Attacker needs to find a user which has run at least one successful 'apt-get update' against an archive providing InRelease files. - Create a Packages file with his preferred content. - Attacker then prevents the download of InRelease, Release and Release.gpg (alternatively he creates a valid Release file and sends this, the other two files need to be missing either way). - User updates against this, getting the modified Packages file without any indication of being unsigned (beside the "Ign InRelease" and "Ign Release.gpg" in the output of 'apt-get update'). => deb files from this source are considered 'trusted' (and therefore the user isn't asked for an additional confirmation before install)
* | | * apt-pkg/packagemanager.cc:David Kalnischkies2012-03-031-12/+40
| | | | | | | | | | | | - do not try to a void a breaks if the broken package pre-depends on the breaker, but let dpkg auto-deconfigure it