summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* split up the OpenMode into OpenMode and CompressionMode andDavid Kalnischkies2011-11-292-53/+79
| | | | | | | provide ReadOnly, WriteOnly and ReadWrite as flags alongside the additional flags as decompression will be one-way later, but certain parts really depend on Write* openmodes being ReadWrite opens, so we will have to fail for those.
* use getCompressors() instead of getCompressorTypes() and use it everywhereDavid Kalnischkies2011-11-242-134/+137
| | | | to replace hardcoding of compressiontypes and compressors
* factored out the decompressor code in IndexCopy::CopyPackages() andSteve McIntyre2011-11-232-81/+95
| | | | TranslationsCopy::CopyTranslations() into a single common function
* merged from lp:~donkult/apt/experimentalMichael Vogt2011-11-235-390/+704
|\
| * * apt-pkg/depcache.cc:David Kalnischkies2011-11-232-29/+64
| | | | | | | | | | | | | | | | - prefer native providers over foreigns even if the chain is foreign The code preferred real over virtual packages and based on priorities. This is changed in so far that a real package from any arch is preferred over any virtual provider and if priorities doesn't help in choosing the best provider we choose it based on architectures
| * fix the operator++ implementations in the cachesetsDavid Kalnischkies2011-11-221-4/+8
| |
| * - provide a {Package,Version}List similar to {Package,Version}SetDavid Kalnischkies2011-11-111-11/+99
| | | | | | | | | | * cmdline/apt-{get,cache,mark}.cc: - use Lists instead of Sets if input order should be preserved for commands accepting lists of packages, e.g. policy (Closes: #625960)
| * * apt-pkg/cacheset.cc:David Kalnischkies2011-11-093-361/+548
| | | | | | | | - make the cachesets real containers which can embedding any container to be able to use the same interface regardless of set or list usage
* | * apt-pkg/cdrom.cc:Michael Vogt2011-11-221-29/+54
| | | | | | - use aptconfiguration to get the supported compression types
* | apt-pkg/cdrom.cc: Accept .bz2, .xz files in addition to .gz files (Closes: ↵Julian Andres Klode2011-11-211-4/+11
|/ | | | #649451)
* * apt-pkg/deb/deblistparser.cc:David Kalnischkies2011-11-031-0/+3
| | | - M-A: foreign packages provide for other archs, too
* do not enter an endless loop for (essential) pre-dependency loopsDavid Kalnischkies2011-10-311-12/+17
|
* * apt-pkg/contrib/sha2_internal.cc:David Kalnischkies2011-10-301-3/+13
| | | - use a pointer-union to peace gcc strict-aliasing warning
* merge with my debian-sid branchDavid Kalnischkies2011-10-3010-70/+59
|\
| * * algorithms.cc:David Kalnischkies2011-10-171-2/+9
| | | | | | - show a debug why a package was kept by ResolveByKeep()
| * cherrypick from my apt/experimental branchDavid Kalnischkies2011-10-052-4/+10
| | | | | | | | | | | | * 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)
| * * apt-pkg/policy.cc:David Kalnischkies2011-10-041-1/+2
| | | | | | - accept generic release pin expressions again in -t (Closes: #644166)
| * * apt-pkg/init.cc:David Kalnischkies2011-09-211-7/+6
| | | | | | - silently ignore *.orig and *.save files by default
| * convert a few for-loop char finds to proper strchr and memchrDavid Kalnischkies2011-09-216-59/+42
| |
| * * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2011-09-202-73/+79
| | | | | | | | | | | | | | | | | | | | | | - 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/contrib/configuration.cc:Michael Vogt2011-09-141-4/+5
| | | | | | | | - fix double delete (LP: #848907) - ignore only the invalid regexp instead of all options
* | * apt-pkg/packagemanager.cc:David Kalnischkies2011-10-171-9/+2
| | | | | | | | - do not fail on unpacked packages in SmartUnPack, just don't shedule them for unpack, but do all checks and configure them
* | merged lp:~donkult/apt/experimentalMichael Vogt2011-10-1491-1102/+1216
|\ \
| * | * apt-pkg/pkgcache.cc:David Kalnischkies2011-10-121-3/+14
| | | | | | | | | - always prefer "en" over "" for "en"-language regardless of cache-order
| * | add implicit dependencies needed for Multi-Arch at the time a VersionDavid Kalnischkies2011-10-122-82/+106
| | | | | | | | | | | | | | | | | | | | | struct is created and not at the end of the cache generation This allows us to be independent from the configured architectures for these kind of conflicts, we get natural progress for free and only the needed dependencies are in th respective binary cache.
| * | use one string to construct the error message instead of using multipleDavid Kalnischkies2011-10-121-23/+30
| | | | | | | | | | | | just with different debugging information at the end
| * | a version can have only a single md5 for descriptions, so we can optimizeDavid Kalnischkies2011-10-121-24/+30
| | | | | | | | | | | | | | | | | | | | | the merging with this knowledge a bit and by correctly sharing the lists we only need to have a single description list for possibly many different versions. This also means that description translations are shared between different sources
| * | share description list between "same" versions (LP: #868977)David Kalnischkies2011-10-111-15/+45
| | |
| * | * apt-pkg/pkgcachegen.cc:David Kalnischkies2011-10-114-131/+190
| | | | | | | | | - refactor MergeList by creating -Group, -Package and -Version specialist
| * | * apt-pkg/deb/debmetaindex.cc:David Kalnischkies2011-10-052-4/+10
| | | | | | | | | | | | | | | - 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-054-17/+34
| |\ \ | |/ / |/| |
* | | * apt-pkg/contrib/configuration.cc:Michael Vogt2011-10-054-17/+34
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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-162-1/+9
| | | | | | | | | | | | - fix fetching language information by adding OptionalSubIndexTarget
| * | | * apt-pkg/contrib/configuration.cc:Michael Vogt2011-09-131-4/+5
| | | | | | | | | | | | | | | | - fix double delete (LP: #848907) - ignore only the invalid regexp instead of all options
| | * | * apt-pkg/deb/debsrcrecords.cc:David Kalnischkies2011-09-212-20/+26
| | | | | | | | | | | | - remove the limit of 400 Binaries for a source package (Closes: #622110)
| | * | * apt-pkg/algorithms.cc:David Kalnischkies2011-09-201-1/+1
| | | | | | | | | | | | - if a package is garbage, don't try to save it with FixByInstall
| | * | 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
| | * | fix foldmarker in algorithms.hDavid Kalnischkies2011-09-191-3/+2
| | | |
| | * | remove old APT_COMPATIBILITY ifdef'sDavid Kalnischkies2011-09-196-59/+0
| | | |
| | * | use forward declaration in headers if possible instead of includesDavid Kalnischkies2011-09-1950-192/+252
| | | |
| | * | do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-1965-534/+493
| | | |
| | * | remove an extra argument for the error mesage formatDavid Kalnischkies2011-09-191-1/+1
| |/ / |/| |
* | | enable APT in unpack/configure ordering to handle loops as wellDavid Kalnischkies2011-09-146-168/+344
|\ \ \ | | | | | | | | | | | | | | | | 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)
| * | | Fixed a problem where the loop flag would be removed prematurely.Christopher Baines2011-08-161-15/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SmartConfigure xserver-xorg-video-apm (1:1.2.3-0ubuntu1) SmartConfigure xserver-xorg-core (2:1.9.0-0ubuntu7.3) <- Loop flag set on xserver-xorg-core SmartConfigure xserver-xorg (1:7.5+6ubuntu3) SmartConfigure xserver-xorg-core (2:1.9.0-0ubuntu7.3) (Only Correct Dependancies) <- Loop flag removed prematurely SmartConfigure libpciaccess0 (0.12.0-1) SmartConfigure libpixman-1-0 (0.18.4-1) SmartConfigure xserver-xorg-video-all (1:7.5+6ubuntu3) SmartConfigure xserver-xorg-video-apm (1:1.2.3-0ubuntu1) (Only Correct Dependancies) SmartConfigure xserver-xorg-core (2:1.9.0-0ubuntu7.3) <- Incorrectly detects first run as no loop flag Also applied this fix to the SmartUnpack method.
| * | | Fixed a bug where SmartUnPack would be called with Immediate=true (to ↵Christopher Baines2011-08-152-37/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resolve dependancies in SmartConfigure) yet Pkg would not be immediately configured. This was because SmartUnPack still required the immediate flag to be set on Pkg. Also inproved the debuging adding indented output for SmartUnPack and SmartConfigure and specifying in the output if SmartConfigure or SmartUnPack was called just to Correct something (PkgLoop = true) or not.
| * | | Applied DonKult (David)'s excellent fix for inproving the loop management. ↵Christopher Baines2011-08-141-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now both SmartConfigure and SmartUnPack can be called mutiple times on the same package, this is to make sure that when loops are broken all packages that are required are kept in the same dpkg run.
| * | | Fix a bug introduced in Rev.2159 on line 398, also fix another potential bug.Christopher Baines2011-08-131-5/+5
| | | |
| * | | Added code to allow SmartConfigure to be called mutiple times on the same ↵Christopher Baines2011-08-121-9/+17
| | | | | | | | | | | | | | | | package to ensure all dependancies are satisfied.