]>
git.saurik.com Git - apt.git/log
Michael Vogt [Fri, 3 Feb 2012 11:14:39 +0000 (12:14 +0100)]
* apt-pkg/contrib/fileutl.h:
- fix compat with FileFd::OpenDescriptor() in ReadOnlyGzip mode
Michael Vogt [Fri, 3 Feb 2012 10:56:29 +0000 (11:56 +0100)]
* apt-pkg/contrib/fileutl.h:
- fix compat with FileFd::OpenDescriptor() in ReadOnlyGzip mode
Michael Vogt [Tue, 31 Jan 2012 16:50:58 +0000 (17:50 +0100)]
Fix IndexCopy::CopyPackages and TranslationsCopy::CopyTranslations to
handle compressed files again (LP: #924182, closes: #658096)
Michael Vogt [Tue, 31 Jan 2012 10:22:24 +0000 (11:22 +0100)]
merged from lp:~mvo/apt/mvo
Michael Vogt [Tue, 31 Jan 2012 10:21:02 +0000 (11:21 +0100)]
merged from lp:~donkult/apt/experimental/
Michael Vogt [Mon, 30 Jan 2012 19:58:13 +0000 (20:58 +0100)]
* apt-pkg/deb/dpkgpm.cc:
- fix crash when a package is in removed but residual config state
(LP: #923807)
Michael Vogt [Mon, 30 Jan 2012 19:22:18 +0000 (20:22 +0100)]
merged from donkult
David Kalnischkies [Mon, 30 Jan 2012 18:17:58 +0000 (19:17 +0100)]
* apt-pkg/aptconfiguration.cc:
- chroot if needed before calling dpkg --print-foreign-architectures
David Kalnischkies [Mon, 30 Jan 2012 15:26:10 +0000 (16:26 +0100)]
* methods/http{s,}.cc:
- if a file without an extension is requested send an 'Accept: text/*'
header to avoid that the server chooses unsupported compressed files
in a content-negotation attempt (Closes: #657560)
David Kalnischkies [Mon, 30 Jan 2012 12:13:29 +0000 (13:13 +0100)]
* apt-pkg/contrib/configuration.cc:
- do not stop parent transversal in FindDir if the value is empty
See http://lists.debian.org/deity/2012/01/msg00053.html , too.
David Kalnischkies [Sun, 29 Jan 2012 14:25:02 +0000 (15:25 +0100)]
* apt-pkg/depcache.cc:
- if a M-A:same package is marked for reinstall, mark all it's installed
silbings for reinstallation as well (LP: #859188)
Colin Watson [Sun, 29 Jan 2012 13:47:34 +0000 (14:47 +0100)]
* apt-pkg/algorithms.cc:
- use a signed int instead of short for score calculation as upgrades
become so big now that it can overflow (Closes: #657732, LP: #917173)
David Kalnischkies [Sun, 29 Jan 2012 12:57:16 +0000 (13:57 +0100)]
add the testcase i wrote for revno 2209.1.2, to ensure that breaks on
not-installed versions are ignored while searching for breakage loops
David Kalnischkies [Sun, 29 Jan 2012 12:54:40 +0000 (13:54 +0100)]
add a very simple testcases for the previous commited fix for
Breaks handling in algorithms.cc by Colin Watson
Colin Watson [Sun, 29 Jan 2012 12:53:25 +0000 (13:53 +0100)]
* apt-pkg/algorithms.cc:
- 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)
Steve Langasek [Sun, 29 Jan 2012 12:24:17 +0000 (13:24 +0100)]
* cmdline/apt-get.cc:
- for cross-build-dependencies M-A: none should be DEB_HOST_ARCH,
not DEB_BUILD_ARCH (Closes: #646288)
David Kalnischkies [Sun, 29 Jan 2012 12:10:38 +0000 (13:10 +0100)]
ensure that dpkg binary doesn't have the chroot-directory prefixed
David Kalnischkies [Sun, 29 Jan 2012 11:59:42 +0000 (12:59 +0100)]
* apt-pkg/deb/dpkgpm.cc:
- chroot if needed before dpkg --assert-multi-arch
Michael Vogt [Tue, 24 Jan 2012 13:02:04 +0000 (14:02 +0100)]
releasing version 0.8.16~exp12
Michael Vogt [Fri, 20 Jan 2012 09:27:03 +0000 (10:27 +0100)]
merged from bzr+ssh://bazaar.launchpad.net/~donkult/apt/experimental/
David Kalnischkies [Fri, 20 Jan 2012 01:00:48 +0000 (02:00 +0100)]
* test/libapt/run-tests:
- hurd doesn't have dmesg yet and we don't really need it either,
so use with $0 a more stable data source for hashsumming
Pino Toscano [Fri, 20 Jan 2012 00:34:31 +0000 (01:34 +0100)]
* test/libapt/globalerror_test.cc:
- errno 0 has a different strerror on hurd, so generate the expected
message dynamically instead of hardcoding 'Success' (Closes: #656530)
David Kalnischkies [Fri, 20 Jan 2012 00:02:36 +0000 (01:02 +0100)]
fix a few esoteric cppcheck errors/warnings/infos
David Kalnischkies [Thu, 19 Jan 2012 23:12:17 +0000 (00:12 +0100)]
fix typos in comments reported by the lintian in very-picky-modes
David Kalnischkies [Thu, 19 Jan 2012 22:51:00 +0000 (23:51 +0100)]
* methods/https.cc:
- use curls list append instead of appending Range and If-Range by hand
which generates malformed requests, thanks Mel Collins for the hint!
(Closes: #646381)
David Kalnischkies [Thu, 19 Jan 2012 22:25:39 +0000 (23:25 +0100)]
apply typofixes by Pascal De Vuyst, thanks! (Closes: #652834, #652835)
David Kalnischkies [Thu, 19 Jan 2012 22:20:45 +0000 (23:20 +0100)]
* debian/rules:
- apply patch to enable usage of hardning CPPFLAGS and LDFLAGS by
Moritz Muehlenhoff, thanks! (Closes: #653504)
David Kalnischkies [Thu, 19 Jan 2012 22:15:29 +0000 (23:15 +0100)]
* debian/control:
- remove APT from the short descriptions as lintian doesn't like it
and it doesn't transport any information for a reader anyway
David Kalnischkies [Thu, 19 Jan 2012 21:48:27 +0000 (22:48 +0100)]
* apt-pkg/packagemanager.cc:
- ignore breaks on not-installed versions while searching for
breakage loops as we don't have to avoid them
Michael Vogt [Thu, 19 Jan 2012 20:32:30 +0000 (21:32 +0100)]
merged from lp:~donkult/apt/experimental/
David Kalnischkies [Thu, 19 Jan 2012 17:42:57 +0000 (18:42 +0100)]
* apt-pkg/cacheiterators.h:
- 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)
Michael Vogt [Thu, 19 Jan 2012 15:28:20 +0000 (16:28 +0100)]
* apt-pkg/deb/dpkgpm.cc:
- fix segfault on pkg removal
Michael Vogt [Thu, 19 Jan 2012 13:12:12 +0000 (14:12 +0100)]
releasing version 0.8.16~exp11
Michael Vogt [Thu, 19 Jan 2012 12:46:09 +0000 (13:46 +0100)]
* apt-pkg/deb/dpkgpm.cc:
- redirect out/input of dpkg --assert-multi-arch to /dev/null
- if multi-arch is detected ensure that pkg:all is reported as pkg:all
David Kalnischkies [Thu, 19 Jan 2012 12:12:14 +0000 (13:12 +0100)]
if multi-arch is detected ensure that pkg:all is reported as pkg:all
Versions with arch:all are added to the package with the native arch,
so we can't rely on Pkg.Arch() for the architecture
David Kalnischkies [Thu, 19 Jan 2012 11:40:38 +0000 (12:40 +0100)]
* apt-pkg/deb/dpkgpm.cc:
- redirect out/input of dpkg --assert-multi-arch to /dev/null
Michael Vogt [Thu, 19 Jan 2012 08:00:56 +0000 (09:00 +0100)]
releasing version 0.8.16~exp10
Michael Vogt [Wed, 18 Jan 2012 09:27:15 +0000 (10:27 +0100)]
* apt-pkg/contrib/fileutl.h:
- 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:
Michael Vogt [Wed, 18 Jan 2012 09:24:43 +0000 (10:24 +0100)]
* apt-pkg/aptconfiguration.cc:
- 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
Michael Vogt [Wed, 18 Jan 2012 09:22:39 +0000 (10:22 +0100)]
* apt-pkg/contrib/fileutils.h:
- fix segfault from python-apt testsuite
David Kalnischkies [Tue, 17 Jan 2012 23:51:03 +0000 (00:51 +0100)]
* apt-pkg/contrib/fileutl.h:
- 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…
David Kalnischkies [Tue, 17 Jan 2012 23:40:38 +0000 (00:40 +0100)]
improve error reporting in case of errors in combination with zlib
David Kalnischkies [Tue, 17 Jan 2012 23:37:19 +0000 (00:37 +0100)]
merge with lp:~mvo/apt
Michael Vogt [Mon, 16 Jan 2012 21:19:54 +0000 (22:19 +0100)]
* apt-pkg/contrib/fileutils.h:
- fix segfault from python-apt testsuite
Michael Vogt [Mon, 16 Jan 2012 21:17:23 +0000 (22:17 +0100)]
merged from debian-experimental2
Michael Vogt [Fri, 13 Jan 2012 16:35:44 +0000 (17:35 +0100)]
merged from lp:~donkult/apt/experimental/
David Kalnischkies [Fri, 13 Jan 2012 16:31:16 +0000 (17:31 +0100)]
add Closes tag for the --show-foreign newline change
David Kalnischkies [Fri, 13 Jan 2012 16:30:17 +0000 (17:30 +0100)]
* apt-pkg/deb/dpkgpm.cc:
- check if dpkg supports multiarch with --assert-multi-arch
and if it does be always explicit about the architecture
David Kalnischkies [Fri, 13 Jan 2012 14:45:08 +0000 (15:45 +0100)]
factor out the detection of self-conflicts into Dep::IsIgnorable
David Kalnischkies [Fri, 13 Jan 2012 11:48:41 +0000 (12:48 +0100)]
* apt-pkg/pkgcache.cc:
- ignore implicit conflicts on providers in AllTarget, too
David Kalnischkies [Wed, 11 Jan 2012 17:05:15 +0000 (18:05 +0100)]
* apt-pkg/depcache.cc:
- implicit conflicts (for multiarch) are supposed to conflict
only with real packages, not with virtual providers
Sergio Cipolla [Tue, 10 Jan 2012 12:43:23 +0000 (13:43 +0100)]
/var/apt/cache is in reality /var/cache/apt
David Kalnischkies [Tue, 10 Jan 2012 12:39:35 +0000 (13:39 +0100)]
merge with debian-sid
David Kalnischkies [Tue, 10 Jan 2012 11:05:12 +0000 (12:05 +0100)]
as Size() can be quiet expensive for compressed files lets store the result
bubulle@debian.org [Mon, 9 Jan 2012 19:04:05 +0000 (20:04 +0100)]
Hungarian (Gabor Kelemen). Closes: #655238
bubulle@debian.org [Sat, 7 Jan 2012 06:17:15 +0000 (07:17 +0100)]
Russian (Yuri Kozlov). Closes: #654844
Michael Vogt [Thu, 5 Jan 2012 20:04:08 +0000 (21:04 +0100)]
releasing version 0.8.16~exp9
Michael Vogt [Mon, 2 Jan 2012 14:15:54 +0000 (15:15 +0100)]
g++ 4.7 fixes
Michael Vogt [Mon, 2 Jan 2012 14:08:58 +0000 (15:08 +0100)]
g++ 4.7 fixes
bubulle@debian.org [Thu, 22 Dec 2011 21:51:18 +0000 (22:51 +0100)]
Slovak (Ivan Masar). Closes: #652985
Michael Vogt [Tue, 20 Dec 2011 13:56:17 +0000 (14:56 +0100)]
merged from lp:~donkult/apt/sid/
Michael Vogt [Tue, 20 Dec 2011 13:55:19 +0000 (14:55 +0100)]
merged from lp:~donkult/apt/sid/
Michael Vogt [Mon, 19 Dec 2011 13:40:28 +0000 (14:40 +0100)]
merged from debian-sid
Michael Vogt [Mon, 19 Dec 2011 13:22:05 +0000 (14:22 +0100)]
merged from lp:~donkult/apt/experimental
Michael Vogt [Mon, 19 Dec 2011 13:07:51 +0000 (14:07 +0100)]
merged from lp:~donkult/apt/experimental
David Kalnischkies [Sun, 18 Dec 2011 00:22:04 +0000 (01:22 +0100)]
implement the fallback method of rred by using the FileFd and the included
ReadLine instead of accessing the files directly with fgets()
David Kalnischkies [Sun, 18 Dec 2011 00:21:20 +0000 (01:21 +0100)]
usage of Skipping in pipes can't work, so we ignore-read instead
Also, read only one char in each step of ReadLine instead of back-"seeking"
David Kalnischkies [Sat, 17 Dec 2011 22:53:31 +0000 (23:53 +0100)]
try to avoid direct usage of .Fd() if possible and do read()s and co
on the FileFd instead
David Kalnischkies [Sat, 17 Dec 2011 16:31:47 +0000 (17:31 +0100)]
keep track of where we are in a filedescriptor so we can use it as Tell()
information if we are working on a pipe which can't seek
David Kalnischkies [Thu, 15 Dec 2011 23:04:52 +0000 (00:04 +0100)]
try seeking on fds opened with OpenDescriptor before giving up
David Kalnischkies [Thu, 15 Dec 2011 22:38:38 +0000 (23:38 +0100)]
refactor compressor calling so that we don't (need to) export ExecCompressor
anymore and therefore are also able to drop quiet a bit of duplicated code
bubulle@debian.org [Thu, 15 Dec 2011 19:34:20 +0000 (20:34 +0100)]
Dutch (Jeroen Schot). Closes: #652230
David Kalnischkies [Thu, 15 Dec 2011 08:13:21 +0000 (09:13 +0100)]
atleast libapt should announce to itself that it is clean…
(and be it if it tries to announce that…)
David Kalnischkies [Wed, 14 Dec 2011 21:35:03 +0000 (22:35 +0100)]
remove the second usage instance of ExecCompressor in ftparchive
by again using the FileFd directly
David Kalnischkies [Wed, 14 Dec 2011 21:11:43 +0000 (22:11 +0100)]
use FileFd instead of forking the compression childs by hand
David Kalnischkies [Wed, 14 Dec 2011 11:32:53 +0000 (12:32 +0100)]
* apt-pkg/aptconfiguration.cc:
- parse dpkg --print-foreign-architectures correctly in
case archs are separated by newline instead of space, too.
David Kalnischkies [Tue, 13 Dec 2011 22:48:14 +0000 (23:48 +0100)]
allow Open() and OpenDescriptor() to be called with a Compressor
David Kalnischkies [Tue, 13 Dec 2011 00:43:28 +0000 (01:43 +0100)]
note to myself: In case you rename something, make sure that you have
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…
David Kalnischkies [Tue, 13 Dec 2011 00:22:38 +0000 (01:22 +0100)]
revert 2184.1.3: forward declaration instead of headers
The breakage is just to big for now, so guard the change with
#ifndef APT_8_CLEANER_HEADERS and be nice to library users
David Kalnischkies [Mon, 12 Dec 2011 23:54:37 +0000 (00:54 +0100)]
revert 2184.1.2: do not pollute namespace in headers
The breakage is just to big for now, so guard the change with
#ifndef APT_8_CLEANER_HEADERS and be nice to library users
David Kalnischkies [Mon, 12 Dec 2011 23:17:30 +0000 (00:17 +0100)]
Allow the FileFd to use an external Compressor to uncompress a given file
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.
David Kalnischkies [Sun, 11 Dec 2011 18:46:59 +0000 (19:46 +0100)]
- add a ReadLine method
- drop the explicit export of gz-compression handling
David Kalnischkies [Sun, 11 Dec 2011 12:08:21 +0000 (13:08 +0100)]
use different compression types in the test now that we support them
David Kalnischkies [Sun, 11 Dec 2011 01:55:20 +0000 (02:55 +0100)]
add a testcase for FindPackages() to better validate that cdrom should work.
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()
David Kalnischkies [Sun, 11 Dec 2011 00:30:45 +0000 (01:30 +0100)]
* apt-pkg/cdrom.cc:
- support InRelease files on cdrom
David Kalnischkies [Sat, 10 Dec 2011 23:58:35 +0000 (00:58 +0100)]
use fileutl exists-functions instead of doing the stat'ing by hand
David Kalnischkies [Sat, 10 Dec 2011 23:41:50 +0000 (00:41 +0100)]
strip the extension of the translation file before storing it in the list
(regression from compression rewrite; found by Steve McIntyre, thanks!)
David Kalnischkies [Sat, 10 Dec 2011 19:03:49 +0000 (20:03 +0100)]
* apt-pkg/contrib/fileutl.{h,cc}:
- implement a ModificationTime method for FileFd
David Kalnischkies [Sat, 10 Dec 2011 18:31:36 +0000 (19:31 +0100)]
enable FileFd to guess the compressor based on the filename if requested or
to search for compressed silbings of the given filename and use this guessing
instead of hardcoding Gzip compression
David Kalnischkies [Sat, 10 Dec 2011 16:35:54 +0000 (17:35 +0100)]
* cmdline/apt-config.cc:
- dump the APT::Compressor settings correctly and completely
Michael Basse (michael-alpha-unix) [Tue, 6 Dec 2011 15:56:10 +0000 (16:56 +0100)]
* doc/po/de.po:
- apply typo-fix from Michael Basse, thanks! (LP: #900770)
David Kalnischkies [Wed, 30 Nov 2011 15:37:09 +0000 (16:37 +0100)]
ensure that we exit instead of proceed in execution after the trap
(the execution leads to hard failures anyway)
David Kalnischkies [Tue, 29 Nov 2011 11:14:31 +0000 (12:14 +0100)]
split up the OpenMode into OpenMode and CompressionMode and
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.
Michael Vogt [Mon, 28 Nov 2011 11:07:55 +0000 (12:07 +0100)]
revert libapt-common addition because of http://lists.debian.org/debian-devel/2011/11/msg00742.html
David Kalnischkies [Wed, 23 Nov 2011 23:53:47 +0000 (00:53 +0100)]
use getCompressors() instead of getCompressorTypes() and use it everywhere
to replace hardcoding of compressiontypes and compressors
David Kalnischkies [Wed, 23 Nov 2011 18:48:07 +0000 (19:48 +0100)]
fix another hickup in the changelog
Steve McIntyre [Wed, 23 Nov 2011 18:34:58 +0000 (19:34 +0100)]
factored out the decompressor code in IndexCopy::CopyPackages() and
TranslationsCopy::CopyTranslations() into a single common function
Michael Vogt [Wed, 23 Nov 2011 10:04:24 +0000 (11:04 +0100)]
fixup changelog
Michael Vogt [Wed, 23 Nov 2011 09:58:44 +0000 (10:58 +0100)]
merged from lp:~donkult/apt/experimental
Michael Vogt [Wed, 23 Nov 2011 09:46:56 +0000 (10:46 +0100)]
merged lp:~mvo/apt/convert-to-multiarch-lib-thanks-colin