summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
* * apt-pkg/indexcopy.cc:David Kalnischkies2010-09-042-3/+2
| | | | - support really still the APT::GPGV::TrustedKeyring setting, as it breaks d-i badly otherwise (Closes: #595428)
* update the version number to the upcoming 0.8.2 andDavid Kalnischkies2010-09-031-1/+1
| | | | bump the release version of the library also
* check for length of Data to avoid the validness ofDavid Kalnischkies2010-09-021-1/+1
| | | | | | | Pin: origin " (no error displayed). We already know in this method that Data is at least one char long, so we avoid the length counting as long as the string doesn't start with "
* * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2010-09-025-30/+32
| | | | | | | - create Dir::Log if needed to support /var/log as tmpfs or similar, inspired by Thomas Bechtold, thanks! (Closes: #523919, LP: #220239) Easily done by moving a private method from pkgAcquire into the public area of fileutl.cc to be able to use it also in here
* * apt-pkg/versionmatch.cc:David Kalnischkies2010-08-301-3/+6
| | | | | - let the pin origin actually work as advertised in the manpage which means "" are optional and pinning a local archive does work - even if it is a non-flat archive (Closes: #594435)
* * apt-pkg/contrib/configuration.cc:David Kalnischkies2010-08-283-4/+13
| | | | - fix autoremove by using correct config-option name and don't make faulty assumptions in error handling (Closes: #594689)
* * apt-pkg/contrib/fileutl.cc:David Kalnischkies2010-08-281-1/+2
| | | - apply SilentlyIgnore also on files without an extension
* * apt-pkg/depcache.cc:David Kalnischkies2010-08-271-1/+10
| | | | - now that apt-get purge works on 'rc' packages let the MarkDelete pass this purge forward to the non-pseudo package for pseudos
* * apt-pkg/acquire-item.cc:David Kalnischkies2010-08-211-3/+3
| | | | | | | - don't use ReadOnlyGzip mode for PDiffs as this mode doesn't work in combination with the AddFd methods of our hashclasses Add also 2 testcases: one to test pdiffs in general and one to test the handling of compressed indexes.
* * apt-pkg/deb/dpkgpm.cc:David Kalnischkies2010-08-201-2/+4
| | | | | - use the InstVer instead of the CurrentVer for the autobit transfer Add also a small testcase to check the handling automatical
* * apt-pkg/deb/debsystem.cc:David Kalnischkies2010-08-191-1/+1
| | | - set dir::state::status based at least on dir
* * apt-pkg/init.cc:David Kalnischkies2010-08-192-3/+5
| | | - set the default values for dir::etc::trusted options correctly
* * apt-pkg/contrib/strutl.cc:David Kalnischkies2010-08-161-1/+1
| | | | | | | - fix error checking for vsnprintf in its safe variant Spotted by -Wextra: contrib/strutl.cc: In function 'char* safe_snprintf(char*, char*, const char*, ...)': contrib/strutl.cc:1172:14: warning: comparison of unsigned expression < 0 is always false
* do not unconditional print the new debugoutput for "FixByInstall"David Kalnischkies2010-08-141-1/+2
|
* * apt-pkg/pkgcache.cc:David Kalnischkies2010-08-131-1/+2
| | | - fix LongDesc handling in LANG=C environment
* * apt-pkg/algorithms.cc:David Kalnischkies2010-08-131-11/+29
| | | | | | | | | | | | | | | | | - let the problem resolver install packages to fix or-groups as a needed remove nuked another or-member (helps for #591882) The resolver sometimes need to break or-groups because he need to remove the previous satisfier as a result of a breaks/conflicts. In such broken or-groups he now tries to install a non-installed non-deleted member of the or-group to statisfy it again. This move is dangerous as it introduces the possibility of a bunch of "new" broken breaks/conflicts on the new statisfier or its dependencies and we don't know about them beforehand. We also don't have the infrastructure to undo the decision later, so we just do it and pray! For now a test option is provided to disable this behavior on the fly to test if the situation is worse: pkgProblemResolver::FixByInstall
* merge with debian-experimental-maDavid Kalnischkies2010-08-107-13/+29
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Swedish translation update. Closes: #592366 * apt-pkg/pkgcache.cc: - re-evaluate the architectures cache when the cache is (re)opened * apt-pkg/cdrom.cc: - fix off-by-one error in DropBinaryArch * apt-pkg/contrib/fileutl.cc: - Add WriteAtomic mode. - Revert WriteEmpty to old behavior (LP: #613211) * apt-pkg, methods: - Convert users of WriteEmpty to WriteAtomic. * apt-pkg/depcache.cc: - Only try upgrade for Breaks if there is a newer version, otherwise handle it as Conflicts (by removing it) (helps for #591882). * debian/control: - Add dependency on gnupg to apt, apt-key uses it.
| * apt-pkg, methods: Convert users of WriteEmpty to WriteAtomic.Julian Andres Klode2010-08-103-6/+6
| |
| * apt-pkg/contrib/fileutl.cc: Revert WriteEmpty to old behavior (LP: #613211)Julian Andres Klode2010-08-101-1/+8
| |
| * apt-pkg/contrib/fileutl.cc: Add WriteAtomic mode.Julian Andres Klode2010-08-102-1/+4
| |
| * * apt-pkg/depcache.cc:Julian Andres Klode2010-08-061-3/+6
| | | | | | | | - Only try upgrade for Breaks if there is a newer version, otherwise handle it as Conflicts (by removing it) (helps for #591881).
| * * apt-pkg/cdrom.cc:Michael Vogt2010-08-021-1/+1
| | | | | | - fix off-by-one error in DropBinaryArch
| * * apt-pkg/pkgcache.cc:Michael Vogt2010-07-301-1/+4
| | | | | | - re-evaluate the architectures cache when the cache is (re)opened
* | * apt-pkg/algorithms.cc:David Kalnischkies2010-08-103-37/+64
|/ | | | - change the debug outputs to display also arch of the package and version dependencies information
* - [ABI BREAK] add an ErrorType option to CacheSetHelperDavid Kalnischkies2010-07-304-10/+56
| | | | | * cmdline/apt-cache.cc: - use Notice instead of Error in the CacheSetHelper messages for compat reasons. Otherwise tools like sbuild blow up
* * apt-pkg/cacheset.cc:Michael Vogt2010-07-301-1/+1
| | | | | - make CacheSetHelper::canNotFindAllVer display a notice only (for compat reasons). Otherwise tools like sbuild blow up
* apt-pkg/init.h: update MAPT_PKG_MINOR because 9 was used in experimental for ↵Michael Vogt2010-07-291-1/+1
| | | | some time and there was quite a bit of churn
* add inline DumpError() to avoid subtle API breakMichael Vogt2010-07-291-1/+13
|
* * apt-pkg/contrib/error.{cc,h}Michael Vogt2010-07-292-7/+8
| | | - docstring cleanup
* * apt-pkg/orderlist.cc:Michael Vogt2010-07-291-1/+78
|\ | | | | | | | | - try to install another or-group member in DepRemove before breaking the or group (Closes: #590438) - configure also the replacement before remove by adding Immediate flag
| * configure also the replacement before remove by adding Immediate flagDavid Kalnischkies2010-07-291-0/+2
| |
| * * apt-pkg/orderlist.cc:David Kalnischkies2010-07-281-1/+76
| | | | | | | | - try to install another or-group member in DepRemove before breaking the or group (Closes: #590438)
* | merged lp:~donkult/apt/sidMichael Vogt2010-07-298-11/+986
|\|
| * - add a 'newest' pseudo target release as in pkg/newestDavid Kalnischkies2010-07-261-1/+6
| | | | | | *
| * * apt-pkg/pkgcache.cc:David Kalnischkies2010-07-252-5/+10
| | | | | | - prefer non-virtual packages in FindPreferredPkg
| * * apt-pkg/cacheset.cc:David Kalnischkies2010-07-173-2/+883
| | | | | | - move them back to the library as they look stable now
| * factor regex package name matches into newly created cachefilter classesDavid Kalnischkies2010-07-173-2/+86
| |
| * * apt-pkg/depcache.cc:David Kalnischkies2010-07-141-4/+4
| | | | | | - handle "circular" conflicts for "all" packages correctly
* | * apt-pkg/cdrom.cc:Julian Andres Klode2010-07-271-1/+1
| | | | | | | | - Use link() instead of rename() for creating the CD database backup; otherwise there would be a short time without any database.
* | * apt-pkg/contrib/fileutl.cc:Julian Andres Klode2010-07-232-0/+22
| | | | | | - Add FileFd::OpenDescriptor() (needed for python-apt's #383617).
* | Add to history whether a change was automatic or not.Julian Andres Klode2010-07-211-1/+6
| |
* | * apt-pkg/deb/dpkgpm.cc:Julian Andres Klode2010-07-211-5/+5
|/ | | - Write architecture information to history file.
* accidently prefilling the vectors results in segfaultsDavid Kalnischkies2010-07-111-1/+1
|
* mark all "Hash Sum mismatch" strings as translateableDavid Kalnischkies2010-07-111-1/+1
|
* rename ReOwn to ReMap in the cacheiteratorsDavid Kalnischkies2010-07-112-9/+9
|
* fix typo preventing display of architecture in Info()David Kalnischkies2010-07-111-1/+1
|
* * apt-pkg/deb/debmetaindex.cc:David Kalnischkies2010-07-114-7/+19
| | | - do not query each architecture for flat file archives
* [ Martin Pitt ]David Kalnischkies2010-07-117-28/+119
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * debian/rules: - Make DEB_BUILD_OPTIONS=noopt actually work by passing the right CXXFLAGS. * apt-pkg/contrib/fileutl.{h,cc}: - Add support for reading of gzipped files with the new "ReadOnlyGzip" OpenMode. (Closes: #188407) - Link against zlib (in apt-pkg/makefile) and add zlib build dependency. - [ABI BREAK] This adds a new private member to FileFd, but its initialization is in the public header file. * configure.in: - Check for zlib library and headers. * apt-pkg/acquire-item.cc, apt-pkg/deb/debindexfile.cc, apt-pkg/deb/debrecords.cc, apt-pkg/deb/debsrcrecords.h, cmdline/apt-cache.cc: - Open Packages, Sources, and Translations indexes in "ReadOnlyGzip" mode. * apt-pkg/deb/debindexfile.cc: - If we do not find uncompressed package/source/translation indexes, look for gzip compressed ones. * apt-pkg/acquire-item.cc: - If the Acquire::GzipIndexes option is true and we download a gzipped index file, keep it as it is (and rename to .gz) instead of uncompressing it. * doc/apt.conf.5.xml: - Document the new Acquire::GzipIndexes option. * doc/po/apt-doc.pot, doc/po/de.po: - German translation of new Acquire::GzipIndexes option. * Add test/test-indexes.sh: - Test behaviour of index retrieval and usage, in particular with uncompressed and gzip compressed indexes. * methods/gzip.cc: With FileFd now being able to read gzipped files, there is no need for the gzip method any more to spawn an external gzip process. Rewrite it to use FileFd directly, which makes the code a lot simpler, and also using less memory and overhead.
| * FileFd(): Drop file name extension check in ReadOnlyGzip modemartin@piware.de2010-07-061-3/+11
| | | | | | | | | | | | | | | | | | | | Drop the ".gz" extension check in FileFd::Open() in ReadOnlyGzip mode, to not depend on a particular file extension. This allows rewriting the gzip method using internal decompression (on ".decomp" files). This requires a zlib bug workaround in FileFd::Close(): When opening an empty file with gzdopen(), gzclose() fails with Z_BUF_ERROR. Do not count this as a failure.
| * apt-pkg/acquire-item.cc: Fix handling of local (file:/) sourcesmartin@piware.de2010-06-241-1/+1
| |