summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-12-19merged from lp:~donkult/apt/experimentalMichael Vogt
2011-12-19merged from lp:~donkult/apt/experimentalMichael Vogt
2011-12-18implement the fallback method of rred by using the FileFd and the includedDavid Kalnischkies
ReadLine instead of accessing the files directly with fgets()
2011-12-18usage of Skipping in pipes can't work, so we ignore-read insteadDavid Kalnischkies
Also, read only one char in each step of ReadLine instead of back-"seeking"
2011-12-17try to avoid direct usage of .Fd() if possible and do read()s and coDavid Kalnischkies
on the FileFd instead
2011-12-17keep track of where we are in a filedescriptor so we can use it as Tell()David Kalnischkies
information if we are working on a pipe which can't seek
2011-12-16try seeking on fds opened with OpenDescriptor before giving upDavid Kalnischkies
2011-12-15refactor compressor calling so that we don't (need to) export ExecCompressorDavid Kalnischkies
anymore and therefore are also able to drop quiet a bit of duplicated code
2011-12-15atleast libapt should announce to itself that it is clean…David Kalnischkies
(and be it if it tries to announce that…)
2011-12-14remove the second usage instance of ExecCompressor in ftparchiveDavid Kalnischkies
by again using the FileFd directly
2011-12-14use FileFd instead of forking the compression childs by handDavid Kalnischkies
2011-12-13allow Open() and OpenDescriptor() to be called with a CompressorDavid Kalnischkies
2011-12-13note to myself: In case you rename something, make sure that you haveDavid Kalnischkies
renamed it everywhere as otherwise stuff "magically" starts to fail… Fixes commit 2209 as the mixture of #define names generates a lovely compilable but non-functional mixture of gzip usage…
2011-12-13revert 2184.1.3: forward declaration instead of headersDavid Kalnischkies
The breakage is just to big for now, so guard the change with #ifndef APT_8_CLEANER_HEADERS and be nice to library users
2011-12-13revert 2184.1.2: do not pollute namespace in headersDavid Kalnischkies
The breakage is just to big for now, so guard the change with #ifndef APT_8_CLEANER_HEADERS and be nice to library users
2011-12-13Allow the FileFd to use an external Compressor to uncompress a given fileDavid Kalnischkies
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.
2011-12-11 - add a ReadLine methodDavid Kalnischkies
- drop the explicit export of gz-compression handling
2011-12-11use different compression types in the test now that we support themDavid Kalnischkies
2011-12-11add a testcase for FindPackages() to better validate that cdrom should work.David Kalnischkies
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()
2011-12-11* apt-pkg/cdrom.cc:David Kalnischkies
- support InRelease files on cdrom
2011-12-11use fileutl exists-functions instead of doing the stat'ing by handDavid Kalnischkies
2011-12-11strip the extension of the translation file before storing it in the listDavid Kalnischkies
(regression from compression rewrite; found by Steve McIntyre, thanks!)
2011-12-10* apt-pkg/contrib/fileutl.{h,cc}:David Kalnischkies
- implement a ModificationTime method for FileFd
2011-12-10enable FileFd to guess the compressor based on the filename if requested orDavid Kalnischkies
to search for compressed silbings of the given filename and use this guessing instead of hardcoding Gzip compression
2011-12-10* cmdline/apt-config.cc:David Kalnischkies
- dump the APT::Compressor settings correctly and completely
2011-11-30ensure that we exit instead of proceed in execution after the trapDavid Kalnischkies
(the execution leads to hard failures anyway)
2011-11-29split up the OpenMode into OpenMode and CompressionMode andDavid Kalnischkies
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.
2011-11-28revert libapt-common addition because of ↵Michael Vogt
http://lists.debian.org/debian-devel/2011/11/msg00742.html
2011-11-24use getCompressors() instead of getCompressorTypes() and use it everywhereDavid Kalnischkies
to replace hardcoding of compressiontypes and compressors
2011-11-23fix another hickup in the changelogDavid Kalnischkies
2011-11-23factored out the decompressor code in IndexCopy::CopyPackages() andSteve McIntyre
TranslationsCopy::CopyTranslations() into a single common function
2011-11-23fixup changelogMichael Vogt
2011-11-23merged from lp:~donkult/apt/experimentalMichael Vogt
2011-11-23merged lp:~mvo/apt/convert-to-multiarch-lib-thanks-colinMichael Vogt
2011-11-23* cmdline/apt-get.cc:David Kalnischkies
- ignore foreign architectures if we check if a provides has only one resolver as it's basically the same for the user, so no need to choose
2011-11-23* apt-pkg/depcache.cc:David Kalnischkies
- 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
2011-11-22fix the operator++ implementations in the cachesetsDavid Kalnischkies
2011-11-22* apt-pkg/cdrom.cc:Michael Vogt
- use aptconfiguration to get the supported compression types
2011-11-22fix remaining renameMichael Vogt
2011-11-22rename .install to .install.in when neededMichael Vogt
2011-11-22merged libapt multiarch enable patch from Colin Watson, many thanks!Michael Vogt
2011-11-21apt-pkg/cdrom.cc: Accept .bz2, .xz files in addition to .gz files (Closes: ↵Julian Andres Klode
#649451)
2011-11-11 - provide a {Package,Version}List similar to {Package,Version}SetDavid Kalnischkies
* 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)
2011-11-10merged from lp:~donkult/apt/experimentalMichael Vogt
2011-11-09* apt-pkg/cacheset.cc:David Kalnischkies
- make the cachesets real containers which can embedding any container to be able to use the same interface regardless of set or list usage
2011-11-03* apt-pkg/deb/deblistparser.cc:David Kalnischkies
- M-A: foreign packages provide for other archs, too
2011-10-31do not enter an endless loop for (essential) pre-dependency loopsDavid Kalnischkies
2011-10-30* apt-pkg/contrib/sha2_internal.cc:David Kalnischkies
- use a pointer-union to peace gcc strict-aliasing warning
2011-10-30merge with my debian-sid branchDavid Kalnischkies
2011-10-20merged from donkultMichael Vogt