summaryrefslogtreecommitdiff
path: root/apt-pkg
Commit message (Collapse)AuthorAgeFilesLines
...
| * * 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
| |
| * Switch FileFd to not transparently gunzip, since that breaks code which ↵martin@piware.de2010-06-246-13/+17
| | | | | | | | expects the compressed contents to stay (such as the copy backend, or when using file:// repositories. Instead, introduce a new ReadOnlyGzip mode and use that where needed
| * pkgAcqIndex::Done(): If we have an IMS-Hit, also rename the destination file ↵martin@piware.de2010-06-171-2/+7
| | | | | | | | in GzipIndexes mode, to avoid it being cleaned
| * apt-pkg/deb/debindexfile.cc: Fix one more place to check for gzipped ↵martin@piware.de2010-06-111-3/+7
| | | | | | | | indexes, to work with apt-get source as well
| * * apt-pkg/acquire-item.cc:martin@piware.de2010-06-111-0/+2
| | | | | | | | | | - Fix return value of pkgAcqFile::Custom600Headers() in the non-index case, to avoid returning NULL and causing crashers in callers. This also fixes a compiler warning.
| * Fix compressed index retrieval for current timestampsmartin@piware.de2010-06-111-17/+16
| | | | | | | | | | Fix a thinko in r1973, which did the Acquire::GzipIndexes test ealier than the IMS-Hit test. This led to rename errors.
| * * apt-pkg/acquire-item.cc:martin@piware.de2010-06-101-1/+19
| | | | | | | | | | - 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.
| * * apt-pkg/deb/debindexfile.cc:martin@piware.de2010-06-091-3/+19
| | | | | | | | - If we do not find uncompressed package/source/translation indexes, look for gzip compressed ones.
| * * apt-pkg/contrib/fileutl.{h,cc}:martin@piware.de2010-06-093-10/+48
| | | | | | | | - Add support for transparent reading of gzipped files. - Link against zlib (in apt-pkg/makefile) and add zlib build dependency.
* | * apt-pkg/contrib/error.{cc,h}:David Kalnischkies2010-07-102-7/+6
| | | | | | | | - remove constness of va_list parameter to fix build on amd64 and co Thanks Eric Valette! (Closes: #588610)
* | * doc/apt.conf.5.xml:Michael Vogt2010-07-094-27/+40
|\ \ | | | | | | - add and document APT::Cache-{Start,Grow,Limit} options for mmap control
| * | check the state of the FileFd before renaming as otherwise the renameDavid Kalnischkies2010-07-091-6/+8
| | | | | | | | | | | | | | | will be tried twice e.g. in an "apt-get update" run and every other piece of code closing the FileFd manual before the destructor will do it again.
| * | switch from std::set to std::vector as it is way more simple, a bitDavid Kalnischkies2010-07-092-15/+13
| | | | | | | | | | | | faster and still provides everything we need for the Cache generator
| * | * doc/apt.conf.5.xml:David Kalnischkies2010-07-093-6/+19
| | | | | | | | | - add and document APT::Cache-{Start,Grow,Limit} options for mmap control
* | | * apt-pkg/deb/dpkgpm.cc:Michael Vogt2010-07-091-1/+1
|\ \ \ | |/ / |/| | - make the apt/term.log output unbuffered (thanks to Matt Zimmerman)
| * | * apt-pkg/deb/dpkgpm.cc:Michael Vogt2010-07-071-1/+2
| | | | | | | | | - make the apt/term.log output unbuffered (thanks to Matt Zimmerman)
* | | * apt-pkg/pkgcachegen.{cc,h}:David Kalnischkies2010-07-087-77/+223
| | | | | | | | | | | | - make the used MMap moveable (and therefore dynamic resizeable) by applying (some) mad pointer magic (Closes: #195018)
* | | use references instead of copies in the Cache generation methodsDavid Kalnischkies2010-07-084-25/+26
| | |
* | | wrap the mmap actions in the CacheGenerator in their own methods toDavid Kalnischkies2010-07-062-23/+42
| | | | | | | | | | | | be able to react on condition changes later then we can move mmap
* | | merge with debian-experimental-maDavid Kalnischkies2010-07-055-19/+89
|\ \ \
| * | | Fix the atomic replace.Julian Andres Klode2010-06-291-1/+1
| | | |
| * | | * apt-pkg/contrib/fileutl.cc:Julian Andres Klode2010-06-292-6/+17
| | | | | | | | | | | | - Make FileFd replace files atomically in WriteTemp mode (for cache, etc).
| * | | Also free regular expressions.Julian Andres Klode2010-06-281-0/+1
| | | |
| * | | Use _error->Warning() instead of writing to std::cerr.Julian Andres Klode2010-06-281-1/+1
| | | |
| * | | Remove debugging stuff, this was not meant to be here.Julian Andres Klode2010-06-281-1/+0
| | | |
| * | | Also support regular expressions and glob() patterns in "Pin: version".Julian Andres Klode2010-06-281-0/+2
| | | |
| * | | * apt-pkg/versionmatch.cc:Julian Andres Klode2010-06-282-12/+48
| | | | | | | | | | | | | | | | | | | | - Support matching pins by regular expressions or glob() like patterns, regular expressions have to be put between to slashes; for example, /.*/.
| * | | deblistparser: Special-case *-armel, lpia and powerpcspe architectures.Julian Andres Klode2010-06-271-0/+6
| | | |
| * | | apt-pkg/deb/deblistparser.cc: Fix bug in architecture wildcard support.Julian Andres Klode2010-06-261-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | Previously, linux-any was always matched, because the code simply appended linux- to the APT::Architecture value. Now, it does this only if the APT::Architecture value does not contain "-".
| * | | * apt-pkg/deb/deblistparser.cc:Julian Andres Klode2010-06-261-1/+9
| | | | | | | | | | | | - Handle architecture wildcards (Closes: #547724).
* | | | Try to use NotEquals for the MultiArch Breaks dependencies instead ofDavid Kalnischkies2010-07-051-4/+1
| | | | | | | | | | | | | | | | Less and Greater -> half the dependencies :)
* | | | clean deblistparser a bit by get the Architectures at one placeDavid Kalnischkies2010-07-042-14/+13
| | | | | | | | | | | | | | | | instead of distributed in a few methods
* | | | * apt-pkg/policy.h:David Kalnischkies2010-07-046-29/+29
| | | | | | | | | | | | | | | | - add another round of const& madness as the previous round accidently NOT override the virtual GetCandidateVer() method (Closes: #587725)
* | | | always mark the all package if a pseudo package is marked for installDavid Kalnischkies2010-06-261-0/+4
| | | |
* | | | make the MMap Grow Error a fatal one as while in theory the code shouldDavid Kalnischkies2010-06-261-1/+1
| | | | | | | | | | | | | | | | never segfault it still tend to do it so better show it directly