summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* correctly ignore already (un)hold packagesDavid Kalnischkies2012-02-111-0/+8
|
* ensure that architectures are not added multiple timesDavid Kalnischkies2012-02-101-1/+3
|
* call dpkg --assert-multi-arch with execvp instead of execvDavid Kalnischkies2012-02-092-2/+2
|
* rework previous patch to avoid changing the inline codeMichael Vogt2012-02-032-4/+6
|
* * apt-pkg/contrib/fileutl.h:Michael Vogt2012-02-031-1/+4
|\ | | | | - fix compat with FileFd::OpenDescriptor() in ReadOnlyGzip mode
| * * apt-pkg/contrib/fileutl.h:Michael Vogt2012-02-031-1/+4
| | | | | | - fix compat with FileFd::OpenDescriptor() in ReadOnlyGzip mode
* | Fix IndexCopy::CopyPackages and TranslationsCopy::CopyTranslations toMichael Vogt2012-01-311-2/+2
|/ | | handle compressed files again (LP: #924182, closes: #658096)
* * 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)
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-01-301-8/+57
| | | - chroot if needed before calling dpkg --print-foreign-architectures
* * apt-pkg/contrib/configuration.cc:David Kalnischkies2012-01-301-2/+8
| | | | | - do not stop parent transversal in FindDir if the value is empty See http://lists.debian.org/deity/2012/01/msg00053.html , too.
* * apt-pkg/depcache.cc:David Kalnischkies2012-01-291-11/+28
| | | | - if a M-A:same package is marked for reinstall, mark all it's installed silbings for reinstallation as well (LP: #859188)
* * apt-pkg/algorithms.cc:Colin Watson2012-01-292-16/+16
| | | | | - use a signed int instead of short for score calculation as upgrades become so big now that it can overflow (Closes: #657732, LP: #917173)
* * apt-pkg/algorithms.cc:Colin Watson2012-01-291-2/+1
| | | | | - don't break out of the main-resolver loop for Breaks to deal with all of them in a single iteration (Closes: #657695, LP: #922485)
* 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
* fix a few esoteric cppcheck errors/warnings/infosDavid Kalnischkies2012-01-201-1/+0
|
* fix typos in comments reported by the lintian in very-picky-modesDavid Kalnischkies2012-01-201-5/+5
|
* * apt-pkg/packagemanager.cc:David Kalnischkies2012-01-191-1/+7
| | | | - ignore breaks on not-installed versions while searching for breakage loops as we don't have to avoid them
* * apt-pkg/cacheiterators.h:David Kalnischkies2012-01-193-4/+4
| | | | | | | | | - 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/contrib/fileutl.h:Michael Vogt2012-01-182-7/+19
|\ | | | | | | | | - store the offset in the internal fd before calculate size of the zlib-handled file to jump back to this place again * apt-pkg/contrib/fileutl.h:
| * * apt-pkg/contrib/fileutl.h:David Kalnischkies2012-01-181-1/+3
| | | | | | | | | | | | | | | | | | - store the offset in the internal fd before calculate size of the zlib-handled file to jump back to this place again It jumped back to the position of the content - which is wrong as the internal fd is compressed and even reseting to the beginning of the file doesn't work as zlib uses an internal buffer, so while we might haven't read anything yet zlib might have done so already…
| * improve error reporting in case of errors in combination with zlibDavid Kalnischkies2012-01-182-6/+16
| |
* | * apt-pkg/aptconfiguration.cc:Michael Vogt2012-01-181-1/+1
|\ \ | |/ |/| | | | | | | | | | | - parse dpkg --print-foreign-architectures correctly in case archs are separated by newline instead of space, too. (Closes: #655590) * Slovak (Ivan Masar). Closes: #652985 * Russian (Yuri Kozlov). Closes: #654844 * Hungarian (Gabor Kelemen). Closes: #655238
| * * apt-pkg/aptconfiguration.cc:David Kalnischkies2011-12-141-1/+1
| | | | | | | | - parse dpkg --print-foreign-architectures correctly in case archs are separated by newline instead of space, too.
* | * apt-pkg/contrib/fileutils.h:Michael Vogt2012-01-161-1/+1
| | | | | | - fix segfault from python-apt testsuite
* | * 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
* | factor out the detection of self-conflicts into Dep::IsIgnorableDavid Kalnischkies2012-01-134-27/+39
| |
* | * apt-pkg/pkgcache.cc:David Kalnischkies2012-01-131-5/+12
| | | | | | - ignore implicit conflicts on providers in AllTarget, too
* | * apt-pkg/depcache.cc:David Kalnischkies2012-01-111-5/+11
| | | | | | | | - implicit conflicts (for multiarch) are supposed to conflict only with real packages, not with virtual providers
* | g++ 4.7 fixesMichael Vogt2012-01-021-0/+2
|\ \
| * | g++ 4.7 fixesMichael Vogt2012-01-021-0/+2
| | |
* | | usage of Skipping in pipes can't work, so we ignore-read insteadDavid Kalnischkies2011-12-181-8/+26
| | | | | | | | | | | | Also, read only one char in each step of ReadLine instead of back-"seeking"
* | | try to avoid direct usage of .Fd() if possible and do read()s and coDavid Kalnischkies2011-12-176-10/+67
| | | | | | | | | | | | on the FileFd instead
* | | keep track of where we are in a filedescriptor so we can use it as Tell()David Kalnischkies2011-12-171-9/+30
| | | | | | | | | | | | information if we are working on a pipe which can't seek
* | | try seeking on fds opened with OpenDescriptor before giving upDavid Kalnischkies2011-12-161-1/+8
| | |
* | | refactor compressor calling so that we don't (need to) export ExecCompressorDavid Kalnischkies2011-12-152-264/+120
| | | | | | | | | | | | anymore and therefore are also able to drop quiet a bit of duplicated code
* | | atleast libapt should announce to itself that it is clean…David Kalnischkies2011-12-155-15/+19
| | | | | | | | | | | | (and be it if it tries to announce that…)
* | | use FileFd instead of forking the compression childs by handDavid Kalnischkies2011-12-142-30/+80
| | |
* | | allow Open() and OpenDescriptor() to be called with a CompressorDavid Kalnischkies2011-12-132-93/+98
| | |
* | | note to myself: In case you rename something, make sure that you haveDavid Kalnischkies2011-12-131-5/+5
| | | | | | | | | | | | | | | | | | | | | 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…
* | | revert 2184.1.3: forward declaration instead of headersDavid Kalnischkies2011-12-1324-12/+103
| | | | | | | | | | | | | | | 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-1325-1/+112
| | | | | | | | | | | | | | | 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-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