summaryrefslogtreecommitdiff
path: root/debian
AgeCommit message (Collapse)AuthorFilesLines
2015-03-16merge debian/sid into debian/experimentalDavid Kalnischkies3-1/+105
2015-02-23releasing package apt version 1.0.9.71.0.9.7Michael Vogt1-0/+7
2015-01-16prepare 1.0.9.61.0.9.6Michael Vogt1-0/+12
2014-12-23release 1.0.9.51.0.9.5David Kalnischkies1-0/+26
2014-12-23tighten filtering of kernel images in apt.auto-removalJames McCoy1-1/+1
The current filtering matches the names of the image metapackages on the i386 architecture: $ dpkg-query -l | awk '/^ii[ ]+(linux|kfreebsd|gnumach)-image-[0-9]/ && $2 !~ /-dbg$/ { print $2 }' linux-image-3.16.0-4-586 linux-image-586 This results in an extra image package being removed from APT::NeverAutoRemove, losing the intended effect of keeping the {current, previous, latest} set of images installed. Requiring a “.” in the package name tightens the matched package names to those that are installing a specific version of the image, thus eliding the meta-packages. Closes: 772732
2014-12-03release 1.0.9.41.0.9.4David Kalnischkies1-0/+41
2014-11-10use 'best' hash for source authenticationDavid Kalnischkies1-0/+2
Collect all hashes we can get from the source record and put them into a HashStringList so that 'apt-get source' can use it instead of using always the MD5sum. We therefore also deprecate the MD5 struct member in favor of the list. While at it, the parsing of the Files is enhanced so that records which miss "Files" (aka MD5 checksums) are still searched for other checksums as they include just as much data, just not with a nice and catchy name. This is a cherry-pick of 1262d35 with some dirty tricks to preserve ABI. LP: 1098738
2014-11-10add a simple container for HashStringsDavid Kalnischkies1-0/+8
APT supports more than just one HashString and even allows to enforce the usage of a specific hash. This class is intended to help with storage and passing around of the HashStrings. The cherry-pick here the un-const-ification of HashType() compared to f4c3850ea335545e297504941dc8c7a8f1c83358. The point of this commit is adding infrastructure for the next one. All by itself, it just adds new symbols. Git-Dch: Ignore
2014-11-09streamline display of --help in all toolsDavid Kalnischkies1-0/+1
By convention, if I run a tool with --help or --version I expect it to exit successfully with the usage, while if I do call it wrong (like without any parameters) I expect the usage message shown with a non-zero exit.
2014-11-08restore ABI of pkgTagSectionDavid Kalnischkies1-0/+1
We have a d-pointer available here, so go ahead and use it which also helps in hidding some dirty details here. The "hard" part is keeping the abi for the inlined methods so that they don't break – at least not more than before as much of the point beside a speedup is support for more than 256 fields in a single section.
2014-11-08explicit overload methods instead of adding parametersDavid Kalnischkies1-2/+4
Adding a new parameter (with a default) is an ABI break, but you can overload a method, which is "just" an API break for everyone doing references to this method (aka: nobody). Git-Dch: Ignore
2014-11-08mark internal interfaces as hiddenDavid Kalnischkies1-419/+0
We have a bunch of classes which are of no use for the outside world, but were still exported and so needed to preserve ABI/API. Marking them as hidden to not export them any longer is a big API break in theory, but in practice nobody is using them – as if they would its a bug.
2014-11-08better non-virtual metaIndex.LocalFileName() implementationDavid Kalnischkies1-0/+1
We can't add a new virtual method without breaking the ABI, but we can freely add new methods, so for older ABIs we just implement this method with a dynamic_cast, so that clients can be more ignorant about the API here and especially don't need to pull a very dirty trick by assuming internal knowledge (like apt-get did here).
2014-11-06releasing package apt version 1.1~exp81.1.exp8Michael Vogt1-0/+21
2014-11-06Update symbols fileMichael Vogt1-10/+1
Git-Dch: ignore
2014-11-05Bump ABI to 4.15Michael Vogt3-1/+1
2014-11-05Merge branch 'debian/sid' into debian/experimentalMichael Vogt1-0/+16
Conflicts: debian/changelog
2014-10-21Ensure /etc/apt/auth.conf has _apt:root ownerMichael Vogt1-5/+0
Ensure in SetupAPTPartialDirectory() that the /etc/apt/auth.conf file can be read by the priv sep apt methods.
2014-10-21debian/apt.postinst: chown _apt:root /etc/apt/auth.confMichael Vogt1-0/+5
If the methods drop privileges we need to ensure that /etc/apt/apt.conf is still readable by the _apt user.
2014-10-15releasing package apt version 1.1~exp71.1.exp7Michael Vogt1-0/+8
2014-10-15releasing package apt version 1.0.9.31.0.9.3Michael Vogt1-0/+16
2014-10-15releasing package apt version 1.1~exp61.1.exp6Michael Vogt1-0/+18
2014-10-14Merge branch 'debian/sid' into debian/experimentalMichael Vogt1-1/+1
2014-10-13releasing package apt version 1.1~exp51.1.exp5Michael Vogt1-0/+20
2014-10-13update symbols fileDavid Kalnischkies1-36/+61
Git-Dch: Ignore
2014-10-08add CVE-2014-7206 to 1.0.9.2Michael Vogt1-1/+1
2014-10-08releasing package apt version 1.1~exp41.1.exp4Michael Vogt1-1/+1
2014-10-08prepare 1.1~exp4Michael Vogt1-0/+80
2014-10-08Merge branch 'debian/sid' into debian/experimentalMichael Vogt1-0/+28
Conflicts: debian/changelog
2014-10-07Merge remote-tracking branch 'upstream/debian/experimental' into ↵Michael Vogt5-117/+316
feature/acq-trans Conflicts: apt-pkg/acquire-item.cc
2014-10-07use _apt:root only for partial directoriesDavid Kalnischkies1-6/+9
Using a different user for calling methods is intended to protect us from methods running amok (via remotely exploited bugs) by limiting what can be done by them. By using root:root for the final directories and just have the files in partial writeable by the methods we enhance this in sofar as a method can't modify already verified data in its parent directory anymore. As a side effect, this also clears most of the problems you could have if the final directories are shared without user-sharing or if these directories disappear as they are now again root owned and only the partial directories contain _apt owned files (usually none if apt isn't running) and the directory itself is autocreated with the right permissions.
2014-10-03Bump library version to libapt-pkg4.14Michael Vogt3-2/+2
2014-10-02releasing package apt version 1.0.9.21.0.9.2Michael Vogt1-0/+28
2014-10-02ensure world-readability for trusted.gpg in postinstDavid Kalnischkies1-0/+4
apt-key creates trusted.gpg if it needs it with 644 nowadays, but before it ensured this, it was gpg creating it, which gives it by default 600. Not a problem as long as our gpgv is run as root, but now that we drop privileges we have to ensure that we can also read trusted.gpg files created by earlier apt-key versions. Closes: 647001
2014-10-01debian/rules: add hardening=+allMichael Vogt1-3/+6
Because of dpkg-buildflags we already get most of the hardening features, +all adds -fPIE and ld -z now Thanks: Simon Ruderich, Markus Waldeck
2014-10-01debian/rules: add hardening=+allMichael Vogt1-3/+6
Because of dpkg-buildflags we already get most of the hardening features, +all adds -fPIE and ld -z now Thanks: Simon Ruderich, Markus Waldeck
2014-09-30Merge remote-tracking branch 'donkult/debian/experimental' into ↵Michael Vogt1-110/+302
debian/experimental
2014-09-30adjust version numbers for the planed uploadMichael Vogt2-2/+2
2014-09-30support parsing of all hashes for pdiffDavid Kalnischkies1-1/+2
The fileformat of a pdiff index stores currently only SHA1 hashes. With this change, we look for all other hashes we support as well and take what we get, so that we can work after the release of jessie to get right of SHA1 if we want to. Note that the completely patched file is and was checked against the hashes collected from the Release file, so this transition isn't mission critical.
2014-09-30mark private methods as hiddenDavid Kalnischkies1-28/+3
We are the only possible users of private methods, so we are also the only users who can potentially export them via using them in inline methods. The point is: We don't need these symbols exported if we don't do this, so marking them as hidden removes some methods from the API without breaking anything as nobody could have used them. Git-Dch: Ignore
2014-09-29fix Configuration::FindVector APIDavid Kalnischkies1-1/+0
Git-Dch: Ignore
2014-09-29update symbols fileDavid Kalnischkies1-81/+298
2014-09-29Add missing "adduser" dependency (for the new _apt user)Michael Vogt1-1/+1
Closes: #763004 Thanks: Russ Allbery
2014-09-27add gnupg and gnupg2 as test-dependencyDavid Kalnischkies1-2/+2
apt can work with both, so it has an or-dependency on them, but the tests want to play with both of them. Git-Dch: Ignore
2014-09-27remove empty keyrings in trusted.gpg.d on upgradeDavid Kalnischkies1-0/+9
Adding and deleting many repositories could cause (empty) keyring files to pill up in older apt-key versions, which in the end might cause gnupg to run into its internal limit of at most 40 keyrings
2014-09-27add and use 'apt-key verify' which prefers gpgv over gpgDavid Kalnischkies1-1/+1
gnupg/gnupg2 can do verify just fine of course, so we don't need to use gpgv here, but it is what we always used in the past, so there might be scripts expecting a certain output and more importantly the output of apt-cdrom contains messages from gpg and even with all the settings we activate to prevent it, it still shows (in some versions) a quiet scary: "gpg: WARNING: Using untrusted key!" message. Keeping the use of gpgv is the simplest way to prevent it. We are increasing also the "Breaks: apt" version from libapt as it requires a newer apt-key than might be installed in partial upgrades.
2014-09-27support gnupg2 as drop-in replacement for gnupgDavid Kalnischkies1-1/+1
If both are available APT will still prefer gpg over gpg2 as it is a bit more lightweight, but it shouldn't be a problem to use one or the other (at least at the moment, who knows what will happen in the future).
2014-09-27rename postrm to apt.postrmDavid Kalnischkies3-39/+0
It helps in identifying its affiliation. Also removes the old postinst which was hidden by apt.postinst for a long time now and would just install a sources.list in edgecases which is probably not a good idea (e.g. on my system /etc/apt/sources.list does not exist). It is better done by the installer of the distro. Git-Dch: Ignore
2014-09-25Use /var/empty as the homedir for _aptMichael Vogt1-2/+2
Thanks to Axel Beckert
2014-09-24releasing package apt version 1.1~exp3Michael Vogt1-0/+19