summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* Allow the FileFd to use an external Compressor to uncompress a given fileDavid Kalnischkies2011-12-135-103/+316
| | | | | | | | | | | 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.
* - add a ReadLine methodDavid Kalnischkies2011-12-113-33/+93
| | | - drop the explicit export of gz-compression handling
* add a testcase for FindPackages() to better validate that cdrom should work.David Kalnischkies2011-12-111-8/+15
| | | | | | Unfortunately it's hard to do an automated integration test with cd, so we test this method in isolation which tries to find Indexes and dropping of duplications with DropRepeats()
* * apt-pkg/cdrom.cc:David Kalnischkies2011-12-112-7/+23
| | | - support InRelease files on cdrom
* use fileutl exists-functions instead of doing the stat'ing by handDavid Kalnischkies2011-12-111-6/+5
|
* strip the extension of the translation file before storing it in the listDavid Kalnischkies2011-12-111-0/+1
| | | | (regression from compression rewrite; found by Steve McIntyre, thanks!)
* * apt-pkg/contrib/fileutl.{h,cc}:David Kalnischkies2011-12-104-18/+23
| | | - implement a ModificationTime method for FileFd
* enable FileFd to guess the compressor based on the filename if requested orDavid Kalnischkies2011-12-105-28/+132
| | | | | to search for compressed silbings of the given filename and use this guessing instead of hardcoding Gzip compression
* 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
| | | |