summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
Commit message (Collapse)AuthorAgeFilesLines
...
* * apt-pkg/cacheiterators.h:David Kalnischkies2012-01-191-2/+2
| | | | | | | | | - 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
* * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2012-01-191-0/+5
| | | - redirect out/input of dpkg --assert-multi-arch to /dev/null
* * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2012-01-131-21/+52
| | | | - check if dpkg supports multiarch with --assert-multi-arch and if it does be always explicit about the architecture
* try to avoid direct usage of .Fd() if possible and do read()s and coDavid Kalnischkies2011-12-171-3/+0
| | | | on the FileFd instead
* atleast libapt should announce to itself that it is clean…David Kalnischkies2011-12-151-0/+2
| | | | (and be it if it tries to announce that…)
* revert 2184.1.3: forward declaration instead of headersDavid Kalnischkies2011-12-133-0/+12
| | | | | The breakage is just to big for now, so guard the change with #ifndef APT_8_CLEANER_HEADERS and be nice to library users
* revert 2184.1.2: do not pollute namespace in headersDavid Kalnischkies2011-12-131-0/+5
| | | | | The breakage is just to big for now, so guard the change with #ifndef APT_8_CLEANER_HEADERS and be nice to library users
* Allow the FileFd to use an external Compressor to uncompress a given fileDavid Kalnischkies2011-12-131-0/+1
| | | | | | | | | | | internally so that it is exported and can be used like a "normal" uncompressed file with FileFd This allows us to hide th zlib usage in the implementation and use gzip instead if we don't have zlib builtin (the same for other compressors). The code includes quiet a few FIXME's so while all tests are working it shouldn't be used just yet outside of libapt as it might break.
* * apt-pkg/contrib/fileutl.{h,cc}:David Kalnischkies2011-12-101-13/+6
| | | - implement a ModificationTime method for FileFd
* enable FileFd to guess the compressor based on the filename if requested orDavid Kalnischkies2011-12-103-8/+9
| | | | | to search for compressed silbings of the given filename and use this guessing instead of hardcoding Gzip compression
* * apt-pkg/deb/deblistparser.cc:David Kalnischkies2011-11-031-0/+3
| | | - M-A: foreign packages provide for other archs, too
* merge with my debian-sid branchDavid Kalnischkies2011-10-303-29/+18
|\
| * cherrypick from my apt/experimental branchDavid Kalnischkies2011-10-051-2/+6
| | | | | | | | | | | | * apt-pkg/deb/debmetaindex.cc: - none is a separator, not a language: no need for Index (Closes: #624218) * apt-pkg/aptconfiguration.cc: - do not builtin languages only if none is forced (Closes: #643787)
| * convert a few for-loop char finds to proper strchr and memchrDavid Kalnischkies2011-09-212-28/+18
| |
| * * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2011-09-201-72/+78
| | | | | | | | | | | | | | | | | | | | | | - use std::vector instead of fixed size arrays to store args and multiarch-packagename strings - load the dpkg base arguments only one time and reuse them later * cmdline/apt-get.cc: - follow Provides in the evaluation of saving candidates, too, for statisfying garbage package dependencies (Closes: #640590) * apt-pkg/algorithms.cc: - if a package is garbage, don't try to save it with FixByInstall
* | * apt-pkg/pkgcachegen.cc:David Kalnischkies2011-10-111-4/+1
| | | | | | - refactor MergeList by creating -Group, -Package and -Version specialist
* | * apt-pkg/deb/debmetaindex.cc:David Kalnischkies2011-10-051-2/+6
| | | | | | | | | | - none is a separator, not a language: no need for Index (Closes: #624218) * apt-pkg/aptconfiguration.cc: - do not builtin languages only if none is forced (Closes: #643787)
* | merge with current debian apt/experimentalDavid Kalnischkies2011-10-052-13/+21
|\ \
| * \ * apt-pkg/contrib/configuration.cc:Michael Vogt2011-10-052-13/+21
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix double delete (LP: #848907) - ignore only the invalid regexp instead of all options * apt-pkg/acquire-item.h, apt-pkg/deb/debmetaindex.cc: - fix fetching language information by adding OptionalSubIndexTarget * methods/https.cc: - cleanup broken downloads properly * ftparchive/cachedb.cc: - fix buffersize in bytes2hex * apt-pkg/deb/deblistparser.cc: - fix crash when the dynamic mmap needs to be grown in LoadReleaseInfo (LP: #854090)
| | * | merged fix from donkultMichael Vogt2011-09-261-12/+20
| | | |
| | * | * apt-pkg/acquire-item.h, apt-pkg/deb/debmetaindex.cc:Michael Vogt2011-09-161-1/+1
| | | | | | | | | | | | - fix fetching language information by adding OptionalSubIndexTarget
* | | | * apt-pkg/deb/debsrcrecords.cc:David Kalnischkies2011-09-212-20/+26
| | | | | | | | | | | | - remove the limit of 400 Binaries for a source package (Closes: #622110)
* | | | load the dpkg base arguments only one time and reuse them laterDavid Kalnischkies2011-09-201-22/+28
| | | |
* | | | * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2011-09-201-61/+61
| | | | | | | | | | | | | | | | - use std::vector instead of fixed size arrays to store args and multiarch-packagename strings
* | | | remove old APT_COMPATIBILITY ifdef'sDavid Kalnischkies2011-09-192-29/+0
| | | |
* | | | use forward declaration in headers if possible instead of includesDavid Kalnischkies2011-09-197-24/+32
| | | |
* | | | do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-1911-90/+95
|/ / /
* | | enable APT in unpack/configure ordering to handle loops as wellDavid Kalnischkies2011-09-142-4/+23
|\ \ \ | | | | | | | | | | | | | | | | as tight dependencies between immediate packages better enabling also the possibility to mark all packages as immediate (at least Closes: #353290, #540227, #559733, #621836, #639290)
| * | | Inproved the SIGINT stop in the dpkgpm, not perfect yet but it should work ↵Christopher Baines2011-08-021-3/+9
| | | | | | | | | | | | | | | | when using Immediate-Configure-All.
| * | | Only stop on SigInt if the system state is right (still needs more testing).Christopher Baines2011-08-011-2/+2
| | | | | | | | | | | | | | | | | | | | More inprovements to the package manager to prevent packages from being configured twice.
| * | | Only allow interupts when using, Immediate-Configure-All.Christopher Baines2011-07-311-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | TODO for dpkgpm: Useful messages about the interupt, what was done to what packages and what was not done to what packages. Only fail when the system is in a clean state, at the moment it will fail either a configure or install run.
| * | | SmartConfigure and SmartUnPack have got smarter! The full descriptions of ↵Christopher Baines2011-07-272-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | what they now do is in the apt-pkg/packagemanager.cc file. The short version is that they will both put the system in a state where there operation can be achived, this involves calling themselves and each other recursively. Because SmartConfigure can now configure a package and all its dependancies itself, there is no current need for DepAdd (at least in packagemanager.cc), SmartConfigure also performs the function of the short lived VerifyConfigure as it checks through all the dependancies before performing configuration. Another change is to use the ConfigureAll method in OrderInstall to clean up any packages left unconfigured during ImmConfigureAll. This is necessary to inprove the safety of ImmConfiguration and because of the new SIGINT functionality of dpkgpm.cc relies on no packages being left unconfigured between pairs of dpkg calls. While writing this commit log, I have realised that the SIGINT stuff is a prototype and not ready to be used yet as I have only tested it twice.
* | | | merge with debian/experimentalDavid Kalnischkies2011-09-136-29/+58
|\ \ \ \
| * \ \ \ merged from the debian-sid branchMichael Vogt2011-08-155-21/+21
| |\ \ \ \ | | |_|/ / | |/| | / | | | |/ | | |/|
| | * | cppcheck complains about some possible speed improvements which could beDavid Kalnischkies2011-08-115-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
| * | | [ABI break] merged patch from Jonathan Thomas to have a newMichael Vogt2011-07-282-0/+12
| | | | | | | | | | | | | | | | RecordField() function in the pkgRecorder parser. Many thanks Thomas
| * | | merged from debian-aptMichael Vogt2011-07-281-5/+19
| |\| |
| | * | merged from lp:~donkult/apt/sidMichael Vogt2011-07-281-5/+19
| | |\ \
| | | * | * apt-pkg/deb/deblistparser.cc:David Kalnischkies2011-07-271-1/+5
| | |/ / | | | | | | | | - do not assume that the last char on a line is a \n (Closes: #633350)
| * | | * merged latest fixes from debian-sidMichael Vogt2011-07-281-3/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * apt-pkg/contrib/sha1.cc: - fix illegally casts of on-stack buffer to a type requiring more alignment than it has resulting in segfaults on sparc (Closes: #634696) * apt-pkg/contrib/cdromutl.cc: - fix escape problem when looking for the mounted devices * apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc: - add new DeEscapeString() similar to DeQuoteString but unescape character escapes like \0XX and \xXX (plus added test) * refresh po/* * cmdline/apt-get.cc: - fix missing download progress in apt-get download - do not require unused partial dirs in 'source' (Closes: #633510) - buildconflicts effect all architectures - implement MultiarchCross for build-dep and source (Closes: #632221) * cmdline/apt-key: - use a tmpfile instead of /etc/apt/secring.gpg (Closes: #632596) * debian/apt.postinst: - remove /etc/apt/secring.gpg if it is an empty file * doc/apt-cache.8.xml: - apply madison typofix from John Feuerstein, thanks! (Closes: #633455) * apt-pkg/policy.cc: - emit an error on unknown APT::Default-Release value (Closes: #407511) * apt-pkg/aptconfiguration.cc: - ensure that native architecture is if not specified otherwise the first architecture in the Architectures vector * apt-pkg/deb/deblistparser.cc: - Strip only :any and :native if MultiArch should be stripped as it is save to ignore them in non-MultiArch contexts but if the dependency is a specific architecture (and not the native) do not strip
| | * | * apt-pkg/deb/deblistparser.cc:David Kalnischkies2011-07-251-3/+6
| | |/ | | | | | | | | | | | | - Strip only :any and :native if MultiArch should be stripped as it is save to ignore them in non-MultiArch contexts but if the dependency is a specific architecture (and not the native) do not strip
* | / reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-138-2/+16
|/ /
* | * apt-pkg/deb/debmetaindex.cc:David Kalnischkies2011-07-142-7/+35
| | | | | | | | | | | | | | - add trusted=yes option to mark unsigned (local) repository as trusted based on a patch from Ansgar Burchardt, thanks a lot! (Closes: #596498) Note that "apt-get update" still warns about unknown signatures even when [trusted=yes] is given for the source.
* | merge lp:~mvo/apt/abi-breakMichael Vogt2011-06-2911-103/+156
|\ \ | |/ |/|
| * * [ABI-Break] Implement EDSP in libapt-pkg so that all front-ends whichMichael Vogt2011-06-089-91/+138
| |\ | | | | | | | | | | | | * [ABI-Break] merge lp:~mvo/apt/sha512-template to add support for sha512 * [ABI-Break] merge lp:~mvo/apt/dpointer to support easier extending without breaking the ABI
| | * apt-pkg/deb/*: add placeholder dpointer and make destructors virtualMichael Vogt2011-02-025-2/+29
| | |
| | * apt-pkg/tagfile.h: add dpointer placeholder, make destructor virtual; ↵Michael Vogt2011-01-281-1/+1
| | | | | | | | | | | | apt-pkg/deb/debsystem.h: make destructor virtual
| | * apt-pkg/deb/dpkgpm.{cc,h}: convert to use dpointersMichael Vogt2011-01-272-55/+64
| | |