summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-08-24update changelog for update0.9.11.1Michael Vogt1-0/+23
2013-08-24Merge remote-tracking branch 'mvo/debian/sid' into debian/sidMichael Vogt2-2/+2
2013-08-23dselect/update: remove "-f" option as its not being used in the context of ↵Michael Vogt1-1/+1
apt-get update
2013-08-23ftparchive/override.cc: fix "skip empty lines" code, the pointer needs to ↵Michael Vogt1-1/+1
get de-referenced first
2013-08-22Merge branch 'debian/sid' of ssh://git.debian.org/git/apt/apt into debian/sidMichael Vogt10-7/+49
2013-08-22do chdir("/") after chroot()Michael Vogt3-4/+4
2013-08-22Merge remote-tracking branch 'donkult/debian/sid' into debian/sidMichael Vogt1-2/+3
2013-08-22apt-pkg:contrib Avoid compiler warning about sign-compareÁngel Guzmán Maeso1-1/+2
The fix avoid the warning "comparison between signed and unsigned integer expressions [-Wsign-compare]"· The index for the loop needs to be unsigned for compare with globbuf.gl_pathc structure member
2013-08-22Merge remote-tracking branch 'mvo/bugfix/coverity' into debian/sidMichael Vogt5-1/+16
Conflicts: apt-pkg/tagfile.h
2013-08-22Merge remote-tracking branch 'mvo/debian/sid' into debian/sidMichael Vogt1-0/+25
2013-08-22fix compiler warning about sign-compareAngel Guzman Maeso1-1/+2
This fix avoids the warning "comparison between signed and unsigned integer expressions [-Wsign-compare]". The index for the loop needs to be unsigned for compare with globbuf.gl_pathc structure member.
2013-08-22add versions to manpages-it Replaces+BreaksDavid Kalnischkies1-1/+2
In the meantime the package was updated to remove the old APT manpages from this package, so we can now add a Breaks and version it, too. The intial Replaces was added in: b57220d815aedbc023847d0885e08c6ed50e629a
2013-08-22add a breaks libapt-inst for FileFd changes in 0.9.9David Kalnischkies1-1/+1
Partial upgrades… The fix for 704608 assumes that bf35c19b817cc1474b3deabce0b0953c248bad42 was applied to libapt-inst which isn't the case for partial upgrades of course, so break it to ensure that it is the case. Closes: 720449
2013-08-21prepare unstable upload0.9.11Michael Vogt1-16/+5
2013-08-19fix incorrect bugnumber for the Pre-Install-Pkgs hook (Closes: #671726)Michael Vogt1-1/+7
2013-08-19add lintian override for no-shlibs-control-file and only install ↵Michael Vogt3-1/+11
libapt-private.so.* instead libapt-private.so
2013-08-19Merge pull request #3 from cbaines/debian/sidMichael Vogt1-0/+25
Add test for bug 507998
2013-08-19prepare for releaseMichael Vogt1-4/+2
2013-08-17update changelogMichael Vogt1-0/+13
2013-08-17Merge remote-tracking branch 'mvo/feature/apt-binary2' into debian/sidMichael Vogt48-2106/+4357
Conflicts: cmdline/apt-get.cc
2013-08-17Merge remote-tracking branch 'donkult/debian/sid' into debian/sidMichael Vogt9-82/+137
2013-08-17Merge branch 'debian/sid' of git://git.debian.org/git/apt/apt into debian/sidChristian PERRIER51-7512/+713
2013-08-17French translation update.Christian PERRIER2-4/+11
2013-08-16Add test for bug 507998Christopher Baines1-0/+25
2013-08-16allow Pre-Install-Pkgs hooks to get info over an FD != stdinDavid Kalnischkies3-46/+81
This adds ::InfoFD option alongside the ::Version one to request sending the information to the specified FD, by default it is STDIN as it was the case before. The environment variable APT_HOOK_INFO_FD contains the FD the data is on as a confirmation that the APT version used understood the request. Allowing the hook to choose the FD is needed/helpful e.g. for shellscripts which have a hard time accessing FDs above 9 (as >= 10 are usually used internally by them) Closes: #671728
2013-08-15use malloc instead of new[] in pkgTagFileDavid Kalnischkies1-15/+15
We don't need initialized memory for pkgTagFile, but more to the point we can use realloc this way which hides the bloody details of increasing the size of the buffer used. Git-Dch: Ignore
2013-08-15ensure that pkgTagFile isn't writing past Buffer lengthDavid Kalnischkies2-9/+25
In 91c4cc14d3654636edf997d23852f05ad3de4853 I removed the +256 from the pkgTagFile call parsing Release files as I couldn't find a mentioning of a reason for why and it was marked as XXX which suggested that at least someone else was suspicious. It turns out that it is indeed "documented", it just didn't found it at first but the changelog of apt 0.6.6 (29. Dec 2003) mentions: * Restore the ugly hack I removed from indexRecords::Load which set the pkgTagFile buffer size to (file size)+256. This is concealing a bug, but I can't fix it right now. This should fix the segfaults that folks are seeing with 0.6.[45]. The bug it is "hiding" is that if pkgTagFile works with a file which doesn't end in a double newline it will be adding it without checking if the Buffer is big enough to store them. Its also not a good idea to let the End pointer be past the end of our space, even if we don't access the data. Closes: 719629
2013-08-15set MALLOC_CHECK_ and MALLOC_PERTURB_ for testcasesDavid Kalnischkies2-6/+6
In bugreport deb:719629 Paul Wise mentions both to enable some malloc checks and as more testing can't hurt we enable both for all testcases. Git-Dch: Ignore
2013-08-15rework the parameter creation for the Hashsum testDavid Kalnischkies1-3/+5
Avoids having to different places from which test binaries are called Git-Dch: Ignore
2013-08-15do not call make from libapt/run-tests if its called by makeDavid Kalnischkies1-3/+5
If we are called by make everything is build already and so this is just a noise nop we can just skip. (Noisy as it complains about being unable to communicate with the other makes to coordinate with the jobserver) Git-Dch: Ignore
2013-08-15init the pkgTagFile with the size of the Release fileDavid Kalnischkies2-2/+2
Release files are basically one big Section, so we might safe some Resize circles by starting with the filesize. Git-Dch: Ignore
2013-08-15add PACKAGE_MATCHER_ABI_COMPAT mode for now so that this branch can be ↵Michael Vogt2-1/+71
merged without breaking ABI
2013-08-15* lp:~mvo/apt/add-glob-function:Michael Vogt5-0/+83
- add Glob() to fileutl.{cc,h} Conflicts: apt-pkg/contrib/fileutl.h debian/changelog
2013-08-15* lp:~mvo/apt/config-clear:Michael Vogt4-0/+22
- support Configuration.Clear() for a clear of the entire configuration Conflicts: debian/changelog
2013-08-15merge patch from Daniel Hartwig to Show a error message if {,dist-}upgrade ↵Michael Vogt2-0/+8
is used with additional arguments (closes: #705510)
2013-08-15merge patch from Daniel Hartwig to Clarify units of Acquire::http::Dl-Limit ↵Michael Vogt2-5/+14
(closes: #705445) Conflicts: debian/changelog
2013-08-15make destructors virtualMichael Vogt1-3/+3
2013-08-12really build apt.installMichael Vogt1-2/+2
2013-08-12install libapt-private* into the apt binaryMichael Vogt1-0/+1
2013-08-12Merge remote-tracking branch 'upstream/debian/sid' into feature/apt-binary2Michael Vogt1-2/+2
2013-08-12fix typo in the test for abi-compliance-checkerMichael Vogt1-2/+2
2013-08-12squash merge of the feature/apt-binary branch without the changes from ↵Michael Vogt45-2107/+4281
experimental
2013-08-12update changelog for upload0.9.10Michael Vogt1-2/+41
2013-08-12do not call 'apt-key update' in apt.postinstDavid Kalnischkies1-1/+0
The debian-archive-keyring package ships trusted.gpg.d fragment files for a while now and dropped their call to 'apt-key update', so there is no need for use to call it as the keys will always be available. This also finally allows a user to remove key(ring)s without APT to overriding this decision by readding them with this step. The functionality is kept around in the odd case that an old debian-archive-keyring package is used which still calls 'apt-key update' and depends on the import (hence, we also do not enforce a newer version of the debian-archive-keyring via our dependencies)
2013-08-12let apt-key del work better with softlink and single key keyringsDavid Kalnischkies2-3/+124
Having fragement files means there is a good chance that there is one key per keyring, so deal with that as well as with setups in which keyrings are linked into trusted.gpg.d as we can't just modify those files (they might be in /usr for example).
2013-08-12ensure that testcases exiting because of set -e aren't successfulDavid Kalnischkies1-1/+11
Git-Dch: Ignore
2013-08-12make the keyring locations in apt-key configurableDavid Kalnischkies2-1/+44
Might come in handy for more than just a simple testcase.
2013-08-12do not double-slash paths in apt-keyDavid Kalnischkies1-1/+6
Closes: 665411
2013-08-12use a tmpfile for trustdb.gpg in apt-keyDavid Kalnischkies2-22/+27
for some "interesting" reason gpg decides that it needs to update its trustdb.gpg file in a --list-keys command even if right before gpg is asked to --check-trustdb. That wouldn't be as bad if it wouldn't modify the keyring being listed at that moment as well, which generates not only warnings which are not a problem for us, but as the keyring modified can be in /usr it modified files which aren't allowed to be modified. The suggested solution in the bugreport is running --check-trustdb unconditionally in an 'apt-key update' call, but this command will not be used in the future and this could still potentially bite us in net-update or adv calls. All of this just to keep a file around, which we do not need… The commit therefore switches to the use of a temporary created trusted.gpg file for everyone and asks gpg to not try to update the trustdb after its intial creation, which seems to avoid the problem altogether. It is using your also faked secring btw as calling the check-trustdb without a keyring is a lot slower … Closes: #687611 Thanks: Andreas Beckmann for the initial patch!
2013-08-12always use our own trustdb.gpg in apt-keyDavid Kalnischkies1-6/+14
APT doesn't care for the trustdb.gpg, but gnupg requires one even for the simplest commands, so we either use the one root has available in /etc or if we don't have access to it (as only root can read that file) we create a temporary directory to store a trustdb.gpg in it. We can't create just a temporary file as gpg requires the given trustdb.gpg file to be valid (if it exists), so we would have to remove the file before calling gnupg which would allow mktemp (and co) to hand exactly this filename out to another program (unlikely, but still).