summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
Commit message (Collapse)AuthorAgeFilesLines
* 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/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/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/contrib/fileutils.h:Michael Vogt2012-01-161-1/+1
| | | - fix segfault from python-apt testsuite
* 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-174-5/+65
| | | | | | | | 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
* | 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-133-0/+9
| | | | | | | | | | 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-1310-0/+47
| | | | | | | | | | 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-133-12/+309
| | | | | | | | | | | | | | | | | | | | | | 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
* | * apt-pkg/contrib/fileutl.{h,cc}:David Kalnischkies2011-12-102-0/+15
| | | | | | - implement a ModificationTime method for FileFd
* | enable FileFd to guess the compressor based on the filename if requested orDavid Kalnischkies2011-12-102-20/+123
| | | | | | | | | | 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.
* * 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-302-25/+18
|\
| * convert a few for-loop char finds to proper strchr and memchrDavid Kalnischkies2011-09-212-25/+18
| |
| * * 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/pkgcachegen.cc:David Kalnischkies2011-10-111-1/+5
| | | | | | - refactor MergeList by creating -Group, -Package and -Version specialist
* | merge with current debian apt/experimentalDavid Kalnischkies2011-10-051-4/+5
|\ \
| * \ * apt-pkg/contrib/configuration.cc:Michael Vogt2011-10-051-4/+5
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
| | * | * 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
* | | | use forward declaration in headers if possible instead of includesDavid Kalnischkies2011-09-196-5/+10
| | | |
* | | | do not pollute namespace in the headers with using (Closes: #500198)David Kalnischkies2011-09-1915-161/+138
|/ / /
* | | merge with debian/experimentalDavid Kalnischkies2011-09-1312-37/+107
|\ \ \
| * \ \ merged from the debian-sid branchMichael Vogt2011-08-154-24/+25
| |\ \ \ | | |/ / | |/| / | | |/
| | * fix a few more cppcheck performance and scope warningsDavid Kalnischkies2011-08-111-3/+4
| | |
| | * cppcheck complains about some possible speed improvements which could beDavid Kalnischkies2011-08-113-21/+21
| | | | | | | | | | | | | | | | | | done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
| | * merged from debian-sidMichael Vogt2011-07-293-3/+16
| | |\
| * | | apt-pkg/contrib/sha2_internal.h: remove extern "C" to avoid symbol clash ↵Michael Vogt2011-07-291-9/+0
| | | | | | | | | | | | | | | | with libssl
| * | | apt-pkg/contrib/sha256.h: use #warning to warn about deprecated headerMichael Vogt2011-07-291-1/+1
| | | |
| * | | merged from lp:~mvo/apt/mvoMichael Vogt2011-07-282-0/+12
| |\| |
| | * | * apt-pkg/contrib/fileutl.{cc,h}:Michael Vogt2011-07-282-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add GetModificationTime() helper * apt-pkg/pkgcachegen.cc: - regenerate the cache if the sources.list changes to ensure that changes in the ordering there will be honored by apt * apt-pkg/sourcelist.{cc,h}: - add pkgSourceList::GetLastModifiedTime() helper
| * | | * merged latest fixes from debian-sidMichael Vogt2011-07-286-6/+72
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * apt-pkg/contrib/sha1.cc: - fix illegally casts of on-stack buffer to a type requiring more alignment than it has resulting in segfaults on sparc (Closes: #634696) * apt-pkg/contrib/cdromutl.cc: - fix escape problem when looking for the mounted devices * apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc: - add new DeEscapeString() similar to DeQuoteString but unescape character escapes like \0XX and \xXX (plus added test) * refresh po/* * cmdline/apt-get.cc: - fix missing download progress in apt-get download - do not require unused partial dirs in 'source' (Closes: #633510) - buildconflicts effect all architectures - implement MultiarchCross for build-dep and source (Closes: #632221) * cmdline/apt-key: - use a tmpfile instead of /etc/apt/secring.gpg (Closes: #632596) * debian/apt.postinst: - remove /etc/apt/secring.gpg if it is an empty file * doc/apt-cache.8.xml: - apply madison typofix from John Feuerstein, thanks! (Closes: #633455) * apt-pkg/policy.cc: - emit an error on unknown APT::Default-Release value (Closes: #407511) * apt-pkg/aptconfiguration.cc: - ensure that native architecture is if not specified otherwise the first architecture in the Architectures vector * apt-pkg/deb/deblistparser.cc: - Strip only :any and :native if MultiArch should be stripped as it is save to ignore them in non-MultiArch contexts but if the dependency is a specific architecture (and not the native) do not strip
| | * | merged from lp:~mvo/apt/mvoMichael Vogt2011-07-263-1/+68
| | |\|
| | | * fix typos in changelog, make DeEscapeString const, improve descriptionMichael Vogt2011-07-262-4/+4
| | | |
| | | * add another escape test case, fixup octal one (its \0XX instead of \0XXX)Michael Vogt2011-07-262-6/+5
| | | |
| | | * apt-pkg/contrib/strutl.cc: kill unneeded debug outputMichael Vogt2011-07-261-1/+0
| | | |
| | | * * apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc:Michael Vogt2011-07-263-6/+69
| | | | | | | | | | | | | | | | - add new DeEscapeString() similar to DeQuoteQuotedWord but unescape charackter escapes like \0XXX and \xXX (plus add test)
| | | * * apt-pkg/contrib/cdromutl.cc:Michael Vogt2011-07-251-1/+7
| | | | | | | | | | | | - fix escape problem when looking for the mounted devices
| | * | * apt-pkg/contrib/sha1.cc:David Miller2011-07-261-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix illegally casts of on-stack buffer to a type requiring more alignment than it has resulting in segfaults on sparc (Closes: #634696) The problem is how sha1.cc codes the SHA1 transform, it illegally casts the on-stack workspace buffer to a type requiring more alignment than 'workspace' is actually declared to have. This only shows up recently because gcc-4.6 now does a really aggressive optimization where it gets rid of the workspace buffer entirely and just accesses 'buffer' directly, and assumes it has the necessary alignment for 32-bit loads (which it doesn't).