summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
Commit message (Collapse)AuthorAgeFilesLines
* fix -Wall errorsMichael Vogt2013-08-081-2/+4
|
* use pkgTagFile to parse "header" of Release filesDavid Kalnischkies2013-08-081-85/+19
| | | | | | | | | | The handwritten parsing here was mostly done as we couldn't trust the Release file we got, but nowadays we are sure that the Release file is valid and contains just a single section we want it to include. Beside reducing code it also fixes a bug: Fieldnames in deb822 formatted files are case-insensitive and pkgTagFile does it correctly, but this selfbuilt stuff here didn't.
* Merge remote-tracking branch 'mvo/bugfix/coverity' into debian/sidMichael Vogt2013-07-282-0/+2
|\
| * fix some coverity chroot() releated warningsMichael Vogt2013-07-261-0/+1
| |
| * delete targets dataMichael Vogt2013-07-251-0/+1
| |
* | fix if-clause to generate hook-info for 'rc' packagesDavid Kalnischkies2013-07-161-1/+1
|/ | | | | | | | | The code incorrectly skips printing of current version information, if the package has no current version (for APT, but for dpkg as it is the case for packages which are removed but not purged) by using an unintended "else if" rather than an "if". Closes: 717006
* implement arch+= and arch-= for sources.listDavid Kalnischkies2013-07-111-2/+21
| | | | | | | | | | | | | | | Default is to acquire all architectures from APT::Architectures which can be changed by arch=, but this isn't very flexible if you want "mostly" the default as you have to hardcode the architectures then, so arch-= and arch+= can be used to add/remove architectures from the default set. On a machine with 'amd64' and 'i386' configured the lines: deb [arch+=armel] http://example.org/debian wheezy rocks deb [arch-=amd64] http://example.org/debian jessie rocks will result in the download of: wheezy Packages for 'amd64', 'i386' and 'armel' jessie Packages for 'i386'
* Version 3 for DPkg::Pre-Install-Pkgs with MultiArch infoDavid Kalnischkies2013-07-112-22/+53
| | | | | | | | | | | | | | | | | | | | | Adds on top of Version 2 to all displayed version numbers the architecture as well as the MultiArch flag for consumption by the hooks. Most of the time the architecture will be the same for both versions displayed, but packages might change from "all" to "any" (or back) between versions so we can't display the architecture for packages. Pseudo-Format for Version 3: <name> <version> <arch> <m-a-flag> <compare> <version> <arch> <m-a-flag> Examples: stuff - - none < 1 amd64 none **CONFIGURE** libsame 1 i386 same < 2 i386 same **CONFIGURE** stuff 2 i386 none > 1 i386 none **CONFIGURE** libsame 2 i386 same > - - none **REMOVE** toolkit 1 all foreign > - - none **REMOVE** Closes: #712116
* handle missing "Description" in apt-cache showDavid Kalnischkies2013-06-201-1/+5
| | | | | | | | | | | | do not blindly assume that all packages stanzas have a "Description:" field in 'apt-cache show' as well as in the cache creation itself. We instead assume now that if the stanza has a Description, it will not be the first field as we look out for "\nDescription" to take care of MD5sum as well as (maybe ignored) translated Descriptions embedded in the package stanza. Closes: #712435
* merged bundle from davidMichael Vogt2013-04-083-20/+22
|\
| * share version strings between same versions (of different architectures)David Kalnischkies2013-04-031-8/+4
| | | | | | to save some space and allow quick comparisions later on
| * micro-optimize and enhance readability of ListParser::VersionHashDavid Kalnischkies2013-04-011-7/+7
| |
| * * apt-pkg/deb/debversion.cc:David Kalnischkies2013-04-011-3/+12
| | | | | | - add a string-equal shortcut for equal version comparisions
| * various simple changes to fix cppcheck warningsDavid Kalnischkies2013-03-101-10/+7
| |
* | merged lp:~mvo/apt/fix-inrelease5Michael Vogt2013-04-023-22/+29
|\ \
| * | * apt-pkg/deb/debindexfile.cc,David Kalnischkies2013-03-182-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | apt-pkg/deb/deblistparser.cc: - use OpenMaybeClearSignedFile to be free from detecting and skipping clearsigning metadata in dsc and Release files We can't write a "clean" file to disk as not all acquire methods copy Release files before checking them (e.g. cdrom), so this reverts recombining, but uses the method we use for dsc files also in the two places we deal with Release files
| * | - if ExecGPGV deals with a clear-signed file it will split this fileDavid Kalnischkies2013-03-151-10/+21
| | | | | | | | | | | | | | | | | | | | | | | | into data and signatures, pass it to gpgv for verification and recombines it after that in a known-good way without unsigned blocks and whitespaces resulting usually in more or less the same file as before, but later code can be sure about the format * apt-pkg/deb/debmetaindex.cc: - reenable InRelease by default
* | | merged the debian-wheezy branchMichael Vogt2013-03-221-7/+14
|\| | | |/ |/|
| * * SECURITY UPDATE: InRelease verification bypassMichael Vogt2013-03-141-7/+14
| | | | | | | | | | | | | | | | | | - CVE-2013-1051 * apt-pkg/deb/debmetaindex.cc, test/integration/test-bug-595691-empty-and-broken-archive-files, test/integration/test-releasefile-verification: - disable InRelease downloading until the verification issue is fixed, thanks to Ansgar Burchardt for finding the flaw
* | fix pkgProblemResolver::Scores, thanks to Paul Wise. Michael Vogt2013-01-081-6/+7
|/ | | Closes: #697577
* change permissions of /var/log/apt/term.log to 0640 (LP: #975199)Michael Vogt2012-12-131-1/+1
|
* handle packages without a mandatory architecture (debian-policy ยง5.3)David Kalnischkies2012-09-092-6/+24
| | | | | by introducing a pseudo-architecture 'none' so that the small group of users with these packages can get right of them without introducing too much hassle for other users (Closes: #686346)
* report the package name with architecture in the "no file" error messageDavid Kalnischkies2012-09-031-1/+1
|
* * apt-pkg/deb/deblistparser.cc:David Kalnischkies2012-07-091-1/+2
| | | | - negative dependencies need to apply to all architectures, but those with a specific architecture only apply to this one
* do not dereference the storage for the unique strings as the pointer canDavid Kalnischkies2012-06-162-8/+11
| | | | | change at the time of writing the strings, so first store it temporary and then save the index in the (possibily new) pointer location
* * apt-pkg/deb/deblistparser.cc:David Kalnischkies2012-06-141-27/+5
| | | | | - use PackageArchitectureMatchesSpecification filter * apt-pkg/cachefilter.cc: - add PackageArchitectureMatchesSpecification (Closes: #672603)
* * deb/deblistparser.cc:David Kalnischkies2012-06-141-23/+30
| | | | - ensure that mixed positive/negative architecture wildcards are handled in the same way as dpkg handles them
* * apt-pkg/deb/deblistparser.cc:Thibaut Girka2012-06-111-3/+17
| | | | - add support for arch-specific qualifiers in dependencies
* * apt-pkg/deb/deblistparser.cc:David Kalnischkies2012-06-101-6/+5
| | | | | - set pkgCacheGen::Essential to "all" again (Closes: #675449) * apt-pkg/algorithms.cc: - force install only for one essential package out of a group
* fix calling style of FileFd (no functional change)David Kalnischkies2012-05-101-3/+3
|
* * apt-pkg/deb/deblistparser.cc:David Kalnischkies2012-05-021-5/+12
| | | - check length and containing chars for a given description md5sum
* merged from lp:~donkult/apt/sidMichael Vogt2012-04-201-2/+8
|\
| * * apt-pkg/deb/deblistparser.cc:David Kalnischkies2012-04-181-2/+8
| | | | | | - only treat the native apt as essential by default
* | 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)
* | use a static FileFd::Write overload to reduce duplication of write()-retry codeDavid Kalnischkies2012-04-111-27/+7
| |
* | make these retry_write methods static so that they don't end up as symbolsDavid Kalnischkies2012-03-221-1/+2
| |
* | * 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
* merge with apt/experimentalDavid Kalnischkies2012-03-061-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/deb/deblistparser.cc:Julian Andres Klode2012-03-051-1/+1
| | | | | | - Set the Essential flag on APT instead of only Important
* | 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-041-1/+3
| | | | | | | | 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-02-181-25/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
* | 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)
* | call dpkg --assert-multi-arch with execvp instead of execvDavid Kalnischkies2012-02-091-1/+1
|/
* * 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)
* 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