summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* 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
* | | show in the debug output if we are looping in the avoid breaksDavid Kalnischkies2012-03-031-1/+6
| | |
* | | eanup the ordering-code avoiding a break (no function change)David Kalnischkies2012-03-031-28/+23
| | |
* | | use pdiff for Translation-* files if available (Closes: #657902)David Kalnischkies2012-02-181-1/+6
| | | | | | | | | | | | Beware: pdiffs for Translation-* are only acquired if their availability is advertised in the Release file.
* | | * apt-pkg/acquire-item.cc:David Kalnischkies2012-02-182-72/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - drop support for i18n/Index file (introduced in 0.8.11) and use the Release file instead to get the Translations (Closes: #649314) * ftparchive/writer.cc: - add 'Translation-*' to the default patterns i18n/Index was never used outside debian - and even here it isn't used consistently as only 'main' has such a file. As the Release file now includes the Translation-* files we therefore drop support for i18n/Index. A version supporting it was never part of a debian release and still supporting it would mean that we get 99% of the time a 404 as response to the request anyway and confuse archive maintainers who want to provide all files APT tries to acquire.
* | | ensure that the cache-directories are really directories beforeDavid Kalnischkies2012-02-181-2/+2
| | | | | | | | | | | | trying to get a list of included files from them
* | | * apt-pkg/indexrecords.cc:David Kalnischkies2012-02-181-1/+4
| | | | | | | | | - do not create empty Entries as a sideeffect of Lookup()
* | | * apt-pkg/cachefile.cc:David Kalnischkies2012-02-113-0/+109
| | | | | | | | | - clean up lost atomic cachefiles with 'clean' (Closes: #650513)
* | | save the universe by not printing messages about apport if a packageDavid Kalnischkies2012-02-111-0/+6
| | | | | | | | | with this name is not installed (Closes: #619646)
* | | correctly ignore already (un)hold packagesDavid Kalnischkies2012-02-111-0/+8
| | |
* | | ensure that architectures are not added multiple timesDavid Kalnischkies2012-02-101-1/+3
| | |
* | | call dpkg --assert-multi-arch with execvp instead of execvDavid Kalnischkies2012-02-092-2/+2
|/ /
* | rework previous patch to avoid changing the inline codeMichael Vogt2012-02-032-4/+6
| |
* | * apt-pkg/contrib/fileutl.h:Michael Vogt2012-02-031-1/+4
|\| | | | | - fix compat with FileFd::OpenDescriptor() in ReadOnlyGzip mode
| * * apt-pkg/contrib/fileutl.h:Michael Vogt2012-02-031-1/+4
| | | | | | - fix compat with FileFd::OpenDescriptor() in ReadOnlyGzip mode
* | Fix IndexCopy::CopyPackages and TranslationsCopy::CopyTranslations toMichael Vogt2012-01-311-2/+2
|/ | | handle compressed files again (LP: #924182, closes: #658096)
* * apt-pkg/deb/dpkgpm.cc:Michael Vogt2012-01-301-2/+36
| | | | - fix crash when a package is in removed but residual config state (LP: #923807)
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-01-301-8/+57
| | | - chroot if needed before calling dpkg --print-foreign-architectures
* * apt-pkg/contrib/configuration.cc:David Kalnischkies2012-01-301-2/+8
| | | | | - do not stop parent transversal in FindDir if the value is empty See http://lists.debian.org/deity/2012/01/msg00053.html , too.
* * apt-pkg/depcache.cc:David Kalnischkies2012-01-291-11/+28
| | | | - if a M-A:same package is marked for reinstall, mark all it's installed silbings for reinstallation as well (LP: #859188)
* * apt-pkg/algorithms.cc:Colin Watson2012-01-292-16/+16
| | | | | - use a signed int instead of short for score calculation as upgrades become so big now that it can overflow (Closes: #657732, LP: #917173)
* * apt-pkg/algorithms.cc:Colin Watson2012-01-291-2/+1
| | | | | - don't break out of the main-resolver loop for Breaks to deal with all of them in a single iteration (Closes: #657695, LP: #922485)
* ensure that dpkg binary doesn't have the chroot-directory prefixedDavid Kalnischkies2012-01-291-1/+11
|
* * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2012-01-291-17/+15
| | | - chroot if needed before dpkg --assert-multi-arch
* fix a few esoteric cppcheck errors/warnings/infosDavid Kalnischkies2012-01-201-1/+0
|
* fix typos in comments reported by the lintian in very-picky-modesDavid Kalnischkies2012-01-201-5/+5
|
* * apt-pkg/packagemanager.cc:David Kalnischkies2012-01-191-1/+7
| | | | - ignore breaks on not-installed versions while searching for breakage loops as we don't have to avoid them
* * apt-pkg/cacheiterators.h:David Kalnischkies2012-01-193-4/+4
| | | | | | | | | - return the correct version arch for all+foreign, too The flag is interpreted at a few other places in different styles so this commit ensures that the flag check is consistent everywhere (checking for Same in flag style is a bit too much as it isn't used in combination with others anyway, but who knows and just for consistency)
* * apt-pkg/deb/dpkgpm.cc:Michael Vogt2012-01-191-1/+5
| | | - fix segfault on pkg removal
* if multi-arch is detected ensure that pkg:all is reported as pkg:allDavid Kalnischkies2012-01-191-1/+4
| | | | Versions with arch:all are added to the package with the native arch, so we can't rely on Pkg.Arch() for the architecture