Michael Vogt [Thu, 11 Aug 2011 14:30:17 +0000 (16:30 +0200)]
* methods/mirror.cc:
- include the architecture(s) in the query string as well so
that the server can make better decisions
Michael Vogt [Tue, 9 Aug 2011 12:50:20 +0000 (14:50 +0200)]
* apt-pkg/acquire.cc:
- fix potential divide-by-zero
Michael Vogt [Tue, 9 Aug 2011 12:38:01 +0000 (14:38 +0200)]
merged from the debian-experimental2 branch
Michael Vogt [Mon, 8 Aug 2011 14:18:52 +0000 (16:18 +0200)]
fix crash when P.Arch() was used but the cache got remapped
Michael Vogt [Mon, 8 Aug 2011 14:14:54 +0000 (16:14 +0200)]
apt-pkg/acquire-item.cc: add more debug output
Michael Vogt [Mon, 8 Aug 2011 14:14:13 +0000 (16:14 +0200)]
apt-pkg/pkgcachegen.cc: fix incorrect test for modification time
Michael Vogt [Fri, 5 Aug 2011 10:29:40 +0000 (12:29 +0200)]
* test/integration/test-hashsum-verification:
- add regression test for hashsum verification
* apt-pkg/acquire-item.cc:
- if no Release.gpg file is found, still load the hashes for
verification (closes: #636314) and add test
Michael Vogt [Fri, 5 Aug 2011 10:26:35 +0000 (12:26 +0200)]
* apt-pkg/acquire-item.cc:
- if no Release.gpg file is found, still load the hashes for
verification (closes: #636314) and add test
Michael Vogt [Fri, 5 Aug 2011 09:49:59 +0000 (11:49 +0200)]
* test/integration/test-hashsum-verification:
- add regression test for hashsum verification
Michael Vogt [Fri, 5 Aug 2011 09:00:46 +0000 (11:00 +0200)]
apt-pkg/acquire-item.cc: always init Verify
Michael Vogt [Fri, 5 Aug 2011 08:48:18 +0000 (10:48 +0200)]
* apt-pkg/acquire-item.{cc,h}:
- do not check for a "Package" tag in optional index targets
like the translations index
Michael Vogt [Fri, 5 Aug 2011 07:12:31 +0000 (09:12 +0200)]
apt-pkg/pkgcachegen.cc: fix compiler error
Michael Vogt [Mon, 1 Aug 2011 13:32:16 +0000 (15:32 +0200)]
fix crash when P.Arch() was used but the cache got remapped
Michael Vogt [Mon, 1 Aug 2011 11:57:28 +0000 (13:57 +0200)]
merged from lp:~mvo/apt/mvo
Michael Vogt [Mon, 1 Aug 2011 10:57:04 +0000 (12:57 +0200)]
apt-pkg/pkgcachegen.cc: copy Arch to avoid segfault on cache remap
Michael Vogt [Mon, 1 Aug 2011 08:56:49 +0000 (10:56 +0200)]
apt-pkg/sourcelist.cc: GetListOfFilesInDir() fails if the dir does not exists, so test before using that
Michael Vogt [Fri, 29 Jul 2011 16:40:34 +0000 (18:40 +0200)]
apt-pkg/contrib/sha2_internal.h: remove extern "C" to avoid symbol clash with libssl
Michael Vogt [Fri, 29 Jul 2011 14:33:20 +0000 (16:33 +0200)]
test/libapt/hashsums_test.cc: add a test for HashString and VerifyFile
Michael Vogt [Fri, 29 Jul 2011 13:45:06 +0000 (15:45 +0200)]
merged from debian-sid
Michael Vogt [Fri, 29 Jul 2011 12:55:52 +0000 (14:55 +0200)]
apt-pkg/contrib/sha256.h: use #warning to warn about deprecated header
Michael Vogt [Fri, 29 Jul 2011 11:52:18 +0000 (13:52 +0200)]
merge from lp:~mvo/apt/mvo
Michael Vogt [Fri, 29 Jul 2011 11:44:18 +0000 (13:44 +0200)]
* apt-pkg/makefile:
- install sha256.h compat header
Michael Vogt [Fri, 29 Jul 2011 11:37:33 +0000 (13:37 +0200)]
* apt-pkg/pkgcachegen.{cc,h}:
- use ref-to-ptr semantic in NewDepends() to ensure that the
libapt does not segfault if the cache is remapped in between
(LP: #812862)
Michael Vogt [Thu, 28 Jul 2011 15:25:43 +0000 (17:25 +0200)]
releasing version 0.8.16~exp4
Michael Vogt [Thu, 28 Jul 2011 14:56:33 +0000 (16:56 +0200)]
releasing version 0.8.15.5
Michael Vogt [Thu, 28 Jul 2011 13:19:47 +0000 (15:19 +0200)]
merged from lp:~mvo/apt/mvo
Michael Vogt [Thu, 28 Jul 2011 13:16:18 +0000 (15:16 +0200)]
* apt-pkg/contrib/fileutl.{cc,h}:
- 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
Michael Vogt [Thu, 28 Jul 2011 11:55:15 +0000 (13:55 +0200)]
[ABI break] merge patch from Jonathan Thomas to speed up the
depcache by caching the install-recommends and install-suggests
values
Michael Vogt [Thu, 28 Jul 2011 09:58:55 +0000 (11:58 +0200)]
[ABI break] merged patch from Jonathan Thomas to have a new
RecordField() function in the pkgRecorder parser. Many thanks
Thomas
Michael Vogt [Thu, 28 Jul 2011 08:26:39 +0000 (10:26 +0200)]
* [ABI break] apt-pkg/acquire-item.{cc,h}:
- cleanup around OptionalIndexTarget and SubIndexTarget
Michael Vogt [Thu, 28 Jul 2011 08:19:30 +0000 (10:19 +0200)]
cmdline/makefile: ajust comment
Michael Vogt [Thu, 28 Jul 2011 07:50:51 +0000 (09:50 +0200)]
* apt-pkg/cdrom.{cc,h}:
- cleanup old ABI break avoidance hacks
Michael Vogt [Thu, 28 Jul 2011 07:29:44 +0000 (09:29 +0200)]
merged from debian-apt
Michael Vogt [Thu, 28 Jul 2011 07:28:29 +0000 (09:28 +0200)]
merged from lp:~donkult/apt/sid
Michael Vogt [Thu, 28 Jul 2011 07:19:45 +0000 (09:19 +0200)]
* merged latest fixes from debian-sid
* 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
David Kalnischkies [Wed, 27 Jul 2011 21:50:55 +0000 (23:50 +0200)]
* apt-pkg/deb/deblistparser.cc:
- do not assume that the last char on a line is a \n (Closes: #633350)
Michael Vogt [Tue, 26 Jul 2011 10:23:04 +0000 (12:23 +0200)]
releasing version 0.8.15.4
Michael Vogt [Tue, 26 Jul 2011 10:10:00 +0000 (12:10 +0200)]
refresh po/*
Michael Vogt [Tue, 26 Jul 2011 10:02:40 +0000 (12:02 +0200)]
merged from lp:~mvo/apt/mvo
Michael Vogt [Tue, 26 Jul 2011 09:57:16 +0000 (11:57 +0200)]
merged from lp:~donkult/apt/sid
Michael Vogt [Tue, 26 Jul 2011 09:52:42 +0000 (11:52 +0200)]
fix typos in changelog, make DeEscapeString const, improve description
Michael Vogt [Tue, 26 Jul 2011 09:10:47 +0000 (11:10 +0200)]
add another escape test case, fixup octal one (its \0XX instead of \0XXX)
Michael Vogt [Tue, 26 Jul 2011 08:50:43 +0000 (10:50 +0200)]
apt-pkg/contrib/strutl.cc: kill unneeded debug output
Michael Vogt [Tue, 26 Jul 2011 08:49:28 +0000 (10:49 +0200)]
* apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc:
- add new DeEscapeString() similar to DeQuoteQuotedWord but
unescape charackter escapes like \0XXX and \xXX (plus add test)
David Miller [Tue, 26 Jul 2011 07:00:10 +0000 (09:00 +0200)]
* 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)
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).
Michael Vogt [Mon, 25 Jul 2011 14:53:18 +0000 (16:53 +0200)]
* apt-pkg/contrib/cdromutl.cc:
- fix escape problem when looking for the mounted devices
Michael Vogt [Mon, 25 Jul 2011 13:55:31 +0000 (15:55 +0200)]
releasing version 0.8.15.3
Michael Vogt [Mon, 25 Jul 2011 13:54:03 +0000 (15:54 +0200)]
merged from lp:~donkult/apt/sid
David Kalnischkies [Mon, 25 Jul 2011 12:40:22 +0000 (14:40 +0200)]
implement MultiarchCross for build-dep and source (Closes: #632221)
David Kalnischkies [Mon, 25 Jul 2011 11:55:23 +0000 (13:55 +0200)]
the order of languages after "none" is not important, so ignore it in tests
David Kalnischkies [Mon, 25 Jul 2011 11:40:50 +0000 (13:40 +0200)]
update the testcase to reflect that native is always on top if
it is not in the config provided list of Architectures
David Kalnischkies [Mon, 25 Jul 2011 10:52:50 +0000 (12:52 +0200)]
* 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
David Kalnischkies [Mon, 25 Jul 2011 10:37:06 +0000 (12:37 +0200)]
* apt-pkg/aptconfiguration.cc:
- ensure that native architecture is if not specified otherwise the
first architecture in the Architectures vector
David Kalnischkies [Sun, 24 Jul 2011 17:37:49 +0000 (19:37 +0200)]
move debug message about attempt install/remove to the responsible method
David Kalnischkies [Sun, 24 Jul 2011 17:26:38 +0000 (19:26 +0200)]
alternatively check in a versioned depends if the candidate is good
The old code used to do move on to versions behind the candidate in
cases the candidate wasn't a match, but as the Install request later
always installs the candidate (witch wasn't switched) this could have
never worked - and shouldn't in most cases anyway as:
a) it could only work for <, <=, != depends which are unusal
b) doesn't respect pinning, so it could install -1 versions
David Kalnischkies [Sun, 24 Jul 2011 17:15:20 +0000 (19:15 +0200)]
after this consider providing packages (if it is not a versioned dep)
David Kalnischkies [Sun, 24 Jul 2011 17:06:01 +0000 (19:06 +0200)]
move the detection for installed versions up as it is the easiest case
David Kalnischkies [Sun, 24 Jul 2011 17:04:18 +0000 (19:04 +0200)]
first round of reorder code without changing result
David Kalnischkies [Sun, 24 Jul 2011 17:03:15 +0000 (19:03 +0200)]
buildconflicts effect all architectures
David Kalnischkies [Sat, 23 Jul 2011 09:50:49 +0000 (11:50 +0200)]
you want to be nice and quote a filename just to be reminded by gpg
that it doesn't like that… remove superficial quoting to fix apt-key
Michael Vogt [Fri, 22 Jul 2011 14:01:00 +0000 (16:01 +0200)]
merged from donkult
Michael Vogt [Fri, 22 Jul 2011 09:13:48 +0000 (11:13 +0200)]
merged from the mvo branch
Michael Vogt [Fri, 22 Jul 2011 09:12:14 +0000 (11:12 +0200)]
* cmdline/apt-get.cc:
- fix missing download progress in apt-get download
Julian Andres Klode [Wed, 20 Jul 2011 14:38:40 +0000 (16:38 +0200)]
* apt-pkg/pkgcache.cc:
- Check that cache is at least CacheFileSize bytes large (LP: #16467)
Julian Andres Klode [Wed, 20 Jul 2011 14:38:24 +0000 (16:38 +0200)]
apt-pkg/pkgcachegen.cc: Write the file size to the cache
Julian Andres Klode [Wed, 20 Jul 2011 14:37:56 +0000 (16:37 +0200)]
apt-pkg/pkgcache.h: Add pkgCache::Header::CacheFileSize, storing the cache size
David Kalnischkies [Sat, 16 Jul 2011 14:48:03 +0000 (16:48 +0200)]
* apt-pkg/policy.cc:
- emit an error on unknown APT::Default-Release value (Closes: #407511)
David Kalnischkies [Sat, 16 Jul 2011 12:57:37 +0000 (14:57 +0200)]
do not require unused partial dirs in 'source' (Closes: #633510)
John Feuerstein [Sat, 16 Jul 2011 12:37:52 +0000 (14:37 +0200)]
* doc/apt-cache.8.xml:
- apply madison typofix from John Feuerstein, thanks! (Closes: #633455)
David Kalnischkies [Sat, 16 Jul 2011 12:21:51 +0000 (14:21 +0200)]
* 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
Michael Vogt [Fri, 15 Jul 2011 08:39:58 +0000 (10:39 +0200)]
apt-pkg/contrib/configuration.cc: revert Configuration::Set() ABI break
Michael Vogt [Fri, 15 Jul 2011 08:08:44 +0000 (10:08 +0200)]
releasing version 0.8.16~exp3
Michael Vogt [Fri, 15 Jul 2011 07:53:38 +0000 (09:53 +0200)]
merged from bzr.debian.org/bzr/apt/apt/debian-sid
Michael Vogt [Fri, 15 Jul 2011 07:45:33 +0000 (09:45 +0200)]
merged from lp:~donkult/apt/sid
Michael Vogt [Fri, 15 Jul 2011 07:42:37 +0000 (09:42 +0200)]
merged from donkult
David Kalnischkies [Fri, 15 Jul 2011 07:33:36 +0000 (09:33 +0200)]
* apt-pkg/depcache.cc:
- change default of APT::AutoRemove::SuggestsImportant to true
David Kalnischkies [Thu, 14 Jul 2011 19:28:50 +0000 (21:28 +0200)]
merge with debian-sid 0.8.15.2
David Kalnischkies [Thu, 14 Jul 2011 19:06:09 +0000 (21:06 +0200)]
* apt-pkg/deb/debmetaindex.cc:
- add trusted=yes option to mark unsigned (local) repository as trusted
based on a patch from Ansgar Burchardt, thanks a lot! (Closes: #596498)
Note that "apt-get update" still warns about unknown signatures even
when [trusted=yes] is given for the source.
David Kalnischkies [Thu, 14 Jul 2011 13:54:25 +0000 (15:54 +0200)]
replace the last standing double's with long long
David Kalnischkies [Thu, 14 Jul 2011 10:08:16 +0000 (12:08 +0200)]
* cmdline/apt-get.cc:
- add an --assume-no option for testing to say 'no' to everything
Michael Vogt [Thu, 14 Jul 2011 09:30:02 +0000 (11:30 +0200)]
merged from the mvo branch and add proper changelog
Michael Vogt [Thu, 14 Jul 2011 09:20:28 +0000 (11:20 +0200)]
merged from debian-sid
Michael Vogt [Thu, 14 Jul 2011 09:03:55 +0000 (11:03 +0200)]
make ResolveByKeep() more clever and hold back packages that would go into a broken policy state by the upgrade
David Kalnischkies [Wed, 13 Jul 2011 23:44:35 +0000 (01:44 +0200)]
fix sha512 calculation in Hashes::VerifyFiles()
David Kalnischkies [Wed, 13 Jul 2011 21:23:04 +0000 (23:23 +0200)]
* ftparchive/writer.cc:
- generate all checksums in one run over the file for Release
David Kalnischkies [Wed, 13 Jul 2011 21:10:38 +0000 (23:10 +0200)]
enable Hashes::AddFD() to skip creation of certain hashes
David Kalnischkies [Wed, 13 Jul 2011 20:29:37 +0000 (22:29 +0200)]
test that AddFD for single summations works, too
David Kalnischkies [Wed, 13 Jul 2011 17:34:11 +0000 (19:34 +0200)]
move hash test to libapt-testcases and add a few more tests
Michael Vogt [Wed, 13 Jul 2011 17:02:10 +0000 (19:02 +0200)]
fix from David Kalnischkies for the InRelease gpg verification
code (LP: #784473)
David Kalnischkies [Wed, 13 Jul 2011 14:37:15 +0000 (16:37 +0200)]
move implementation of checksums around by abstracting even more
Michael Vogt [Wed, 13 Jul 2011 11:47:25 +0000 (13:47 +0200)]
apt-pkg/aptconfiguration.h: fix copy/paste error in getCompressionTypes() description
David Kalnischkies [Sun, 10 Jul 2011 10:16:13 +0000 (12:16 +0200)]
merge with debian-experimental
David Kalnischkies [Wed, 6 Jul 2011 11:41:18 +0000 (13:41 +0200)]
* apt-pkg/init.cc:
- use CndSet in pkgInitConfig (Closes: #629617)
David Kalnischkies [Wed, 6 Jul 2011 10:46:29 +0000 (12:46 +0200)]
* cmdline/apt-get.cc:
- restore all important dependencies for garbage packages (LP: #806274)
David Kalnischkies [Tue, 5 Jul 2011 17:00:42 +0000 (19:00 +0200)]
cherrypick sources.list option documentation from my sid branch
David Kalnischkies [Tue, 5 Jul 2011 13:58:32 +0000 (15:58 +0200)]
* apt-pkg/acquire*.{cc,h}:
- try even harder to support really big files in the fetcher by
converting (hopefully) everything to 'long long' (Closes: #632271)
David Kalnischkies [Tue, 5 Jul 2011 13:34:43 +0000 (15:34 +0200)]
* doc/apt.conf.5.xml:
- document APT::Architectures list (Closes: #612102)
David Kalnischkies [Tue, 5 Jul 2011 13:14:25 +0000 (15:14 +0200)]
* doc/sources.list.5.xml:
- document available [options] for sources.list entries (Closes: 632441)
Michael Vogt [Tue, 5 Jul 2011 13:02:59 +0000 (14:02 +0100)]
merge lp:~mvo/apt/sha512-template to get fixes for the
sha1/md5 verifiation (closes: #632520)
Michael Vogt [Tue, 5 Jul 2011 12:44:50 +0000 (14:44 +0200)]
apt-pkg/contrib/md5.cc: fix md5sum by using the right type (unsinged char*) and avoiding a implicit cast this way