]> git.saurik.com Git - apt.git/log
apt.git
9 years agouse c++11 algorithms to avoid strange compiler warnings
David Kalnischkies [Sat, 29 Aug 2015 10:28:24 +0000 (12:28 +0200)] 
use c++11 algorithms to avoid strange compiler warnings

Nobody knows what makes the 'unable to optimize loop' warning to appear
in the sourceslist minus-options parsing, especially if we use a foreach
loop, but we can replace it with some nice c++11 algorithm+lambda usage,
which also helps in making even clearer what happens here.

And as this would be a lonely change, lets do it for a few more loops as
well where I might or might not have seen the warning at some point in
time, too.

Git-Dch: Ignore

9 years agoimplement PDiff patching for compressed files
David Kalnischkies [Fri, 28 Aug 2015 17:26:44 +0000 (19:26 +0200)] 
implement PDiff patching for compressed files

Some additional files like 'Contents' are very big and should therefore
kept compressed on the disk, which apt-file did in the past. It also
implemented pdiff patching of these files by un- and recompressing these
files on-the-fly, with this commit we can do the same – but we can do
this in both pdiff patching styles (client and server merging) and
secured by hashes.

Hashes are in so far slightly complicated as we can't compare the hashes
of the compressed files as we might compress them differently than the
server would (different compressor versions, options, …), so we must
compare the hashes of the uncompressed content.

While this commit has changes in public headers, the classes it changes
are marked as hidden, so nobody can use them directly, which means the
ABI break is internal only.

9 years agoauto-prefix $(SITE) for indextargets Description field
David Kalnischkies [Thu, 27 Aug 2015 17:39:16 +0000 (19:39 +0200)] 
auto-prefix $(SITE) for indextargets Description field

This updates the documentation for a change which actually happened in
c2a4a8dded2dfb56dbcab9689b6cb4b96c9999b6 already. The acquire system
expects the $(SITE) to be there (e.g. for mirror rewriting) so we are
better of prefixing it automatically than giving frontends the chance to
forget it. There is no point in not showing $(SITE) first anyway.

9 years agosources.list and indextargets option for pdiffs
David Kalnischkies [Thu, 27 Aug 2015 16:13:00 +0000 (18:13 +0200)] 
sources.list and indextargets option for pdiffs

Disabling pdiffs can be useful occasionally, like if you have a fast
local mirror where the download doesn't matter, but still want to use it
for non-local mirrors. Also, some users might prefer it to only use it
for very big indextargets like Contents.

9 years agoRelease 1.11~exp11 1.1.exp11
Julian Andres Klode [Thu, 27 Aug 2015 15:55:19 +0000 (17:55 +0200)] 
Release 1.11~exp11

9 years agoFix test-security-no-remote-status
Julian Andres Klode [Thu, 27 Aug 2015 13:00:02 +0000 (15:00 +0200)] 
Fix test-security-no-remote-status

Gbp-Dch: ignore

9 years agoDo not parse Status fields from remote sources
Julian Andres Klode [Fri, 21 Aug 2015 16:00:37 +0000 (18:00 +0200)] 
Do not parse Status fields from remote sources

This could allow an attacker to mark a package as installed in a
remote package index, as long as the package was not listed in
the dpkg status file.

This way, an attacker could force the installation of a package
during a dist-upgrade, by providing two packages in an index,
an older marked as installed, and a newer - apt would "upgrade"
to the newer version.

9 years agoMerge branch 'feature/extractar-filefd' into debian/experimental
Julian Andres Klode [Thu, 27 Aug 2015 11:58:14 +0000 (13:58 +0200)] 
Merge branch 'feature/extractar-filefd' into debian/experimental

9 years agoUse compressor support from FileFd for ExtractTar instead of programs
Julian Andres Klode [Sat, 15 Mar 2014 22:03:14 +0000 (23:03 +0100)] 
Use compressor support from FileFd for ExtractTar instead of programs

This way we do not depend on the decompressor programs anymore.

9 years agoAdd test for using ExtractTar on compressed files
Julian Andres Klode [Sun, 16 Mar 2014 13:48:39 +0000 (14:48 +0100)] 
Add test for using ExtractTar on compressed files

Git-Dch: ignore

9 years agoAlways close compressed files in FileFd
Julian Andres Klode [Sun, 16 Mar 2014 13:48:11 +0000 (14:48 +0100)] 
Always close compressed files in FileFd

We dup() the file descriptor when opening compressed files, so we
always need to close the dup()ed one. Furthermore, not unsetting
the d-pointer causes issues when running OpenDescriptor() multiple
times on the same file descriptor.

9 years agoinstall: Set a local deb as the candidate for that package
Julian Andres Klode [Wed, 26 Aug 2015 22:28:47 +0000 (00:28 +0200)] 
install: Set a local deb as the candidate for that package

This ensures that we can install .deb files that are not the
candidate for a given package.

9 years agocacheset: Prefer the depcache over the policy again
Julian Andres Klode [Thu, 27 Aug 2015 11:10:02 +0000 (13:10 +0200)] 
cacheset: Prefer the depcache over the policy again

By preferring the policy over the depcache, we ignore any changes
we made in the depcache, which makes it impossible for code to
change the candidate used here.

This basically reverts commit 2fbfb111312257fa5fc29b0c2ed386fb712f960e:

 prefer the Policy if it is built instead of the DepCache and
 if DepCache is not available as fallback built the Policy

But it also cleans the code up a bit, by removing one level
of nesting.

9 years agodebian/rules: Only do parallel build if specified in DEB_BUILD_OPTIONS
Julian Andres Klode [Wed, 26 Aug 2015 23:10:34 +0000 (01:10 +0200)] 
debian/rules: Only do parallel build if specified in DEB_BUILD_OPTIONS

It was not nice to use 2 * number of cores in all cases.

Thanks: Jakub Wilk for the suggestion

9 years agoallow explicit dis/enable of IndexTargets in sources options
David Kalnischkies [Thu, 27 Aug 2015 08:41:19 +0000 (10:41 +0200)] 
allow explicit dis/enable of IndexTargets in sources options

While Target{,-Add,-Remove} is available for configuring IndexTargets
already, allow Targets to be mentioned explicitely as yes/no options as
well, so that the Target 'Contents' can be disabled via 'Contents: no'
as well as 'Target-Remove: Contents'.

9 years agonot all targets are deb-src targets
David Kalnischkies [Thu, 27 Aug 2015 06:59:20 +0000 (08:59 +0200)] 
not all targets are deb-src targets

Sometimes too much refactoring can have bad effects.

Thanks: Niels Thykier for reporting on IRC
Git-Dch: Ignore

9 years agouse always priv-dropping for changelog download as root
David Kalnischkies [Sun, 23 Aug 2015 11:46:35 +0000 (13:46 +0200)] 
use always priv-dropping for changelog download as root

First of, the temporary directory we download the changelog to needs to
be owned by _apt, but that also means that we don't need to check if we
could/should drop privs as the download happens to a dedicated tempdir
and only after that it is moved to its final location by a privileged user.

9 years agofix various typos reported by codespell
David Kalnischkies [Sat, 22 Aug 2015 14:22:08 +0000 (16:22 +0200)] 
fix various typos reported by codespell

Reported-By: codespell
9 years agolintian: don't show the typofix as a typo
David Kalnischkies [Sat, 22 Aug 2015 10:42:15 +0000 (12:42 +0200)] 
lintian: don't show the typofix as a typo

Git-Dch: Ignore

9 years agoadd a libapt-pkg recommends apt
David Kalnischkies [Sat, 22 Aug 2015 10:29:53 +0000 (12:29 +0200)] 
add a libapt-pkg recommends apt

For many usecases like the acquire system libapt-pkg actually needs
tools and config found in the apt package. apt tends to be installed
everywhere libapt-pkg appears usually anyhow, but just in case to nudge
users (and tools) in the right direction.

Note that this isn't and shouldn't be a hard depends as there are
usecases working perfectly without 'apt' and as this is such an esoteric
problem incurring the costs arising from a Depends-Breaks-loop isn't
deemd as worth it.

9 years agoignore AllowMem parameter in cache generation
David Kalnischkies [Sat, 22 Aug 2015 09:56:38 +0000 (11:56 +0200)] 
ignore AllowMem parameter in cache generation

The parameter name suggests that it should forbid the building of the
entire cache in memory, but this isn't how it was previously and as
AllowMem is false by default it actually prevents previous usecases from
working like being root and configuring apt to build no caches at all.

This should be fixed at some point to actually work, but that is hard to
pull off as it means switching the default and some callers (including
apt itself) actually did call it explicitly with false in certain
cases for no apparent reason (at least now where it is common to have
enough memory to throw at every problem and even if not is a slow apt
usally better than an apt erroring out).

Closes: 796459
9 years agocorrect 'apt update' download summary line
David Kalnischkies [Fri, 21 Aug 2015 22:10:08 +0000 (00:10 +0200)] 
correct 'apt update' download summary line

Fetched() was reported for mostly nothing, while we should be calling it
for files worked with from non-local sources (e.g. http, but not file or
xz). Previously this was called from an acquire item, but got moved to
the acquire worker instead to avoid having it (re)implemented in all
items, but the checks were faulty.

9 years agoSwedish program translation update
Anders Jonsson [Fri, 21 Aug 2015 18:40:07 +0000 (20:40 +0200)] 
Swedish program translation update

Closes: 796059
9 years agojust-in-time removal of broken essential packages
David Kalnischkies [Fri, 21 Aug 2015 17:59:33 +0000 (19:59 +0200)] 
just-in-time removal of broken essential packages

We deal with Conflicts in SmartUnpack in pretty much the same way, but
Breaks weren't handled in SmartConfigure so that the remove was sheduled
after the configuration of the package breaking the to-be-removed.

Closes: 796070
9 years agotest for #796070: downgrades involving essential packages
Julian Andres Klode [Wed, 19 Aug 2015 10:56:12 +0000 (12:56 +0200)] 
test for #796070: downgrades involving essential packages

Git-Dch: Ignore

9 years agotests: check apt-get source release name switching with -t
David Kalnischkies [Fri, 21 Aug 2015 09:34:56 +0000 (11:34 +0200)] 
tests: check apt-get source release name switching with -t

Git-Dch: Ignore

9 years agoFix more instances of missing remapping handling
Julian Andres Klode [Wed, 26 Aug 2015 21:55:13 +0000 (23:55 +0200)] 
Fix more instances of missing remapping handling

After fixing Bug#796999, we noticed that there were
some more instances of iterators which had no associated
Dynamic object, causing them to not be updated when
the cache was remapped.

This happened in two places: In NewPackage() and in
NewProvidesAllArch().

Gbp-Dch: ignore

9 years agopkgcachegen: Account for remapping when parsing depends from NewPackage
Julian Andres Klode [Wed, 26 Aug 2015 21:26:54 +0000 (23:26 +0200)] 
pkgcachegen: Account for remapping when parsing depends from NewPackage

In both the Ver and Dep variables, we need to account for remapping,
as otherwise we would still reference the old bug.

Reproduction environment:

* An i386 system with amd64 foreign architecture
* A sources.list with
deb http://snapshot.debian.org/archive/debian/20150826T102846Z/ unstable main
deb http://snapshot.debian.org/archive/debian/20150826T102846Z/ experimental main

Thanks: Jakub Wilk for the bug report and the backtraces
Closes: #796999
9 years agoreleasing package apt version 1.1~exp10 1.1.exp10
Michael Vogt [Fri, 21 Aug 2015 09:42:50 +0000 (11:42 +0200)] 
releasing package apt version 1.1~exp10

9 years agoFix typo
Michael Vogt [Mon, 24 Aug 2015 10:39:57 +0000 (12:39 +0200)] 
Fix typo

Thanks: Julian Andres Klode
Git-Dch: ignore

9 years agodoc/apt.conf.5.xml: document Acquire::EnableSrvRecods
Michael Vogt [Fri, 21 Aug 2015 09:38:32 +0000 (11:38 +0200)] 
doc/apt.conf.5.xml: document Acquire::EnableSrvRecods

Git-Dch: ignore

9 years agopostinst: Correctly pass --home instead of -home, and fixup old user
Julian Andres Klode [Thu, 20 Aug 2015 12:47:32 +0000 (14:47 +0200)] 
postinst: Correctly pass --home instead of -home, and fixup old user

Thanks: Niels Thykier for reporting this on IRC

9 years agoRe-indent GetCandidateVerNew() and make ConsiderFiles argument explicit
Julian Andres Klode [Thu, 20 Aug 2015 09:56:09 +0000 (11:56 +0200)] 
Re-indent GetCandidateVerNew() and make ConsiderFiles argument explicit

Gbp-Dch: ignore

9 years agoMerge remote-tracking branch 'mvo/feature/srv-records' into debian/experimental
Michael Vogt [Thu, 20 Aug 2015 10:05:49 +0000 (12:05 +0200)] 
Merge remote-tracking branch 'mvo/feature/srv-records' into debian/experimental

9 years agoAdd basic (non weight adjusted) shuffling for SrvRecords selection
Michael Vogt [Thu, 20 Aug 2015 08:40:45 +0000 (10:40 +0200)] 
Add basic (non weight adjusted) shuffling for SrvRecords selection

Also add "Debug::Acquire::SrvRecs" debug option and the option
"Acquire::EnableSrvRecods" to allow disabling this lookup.

9 years agoSupport tabs in sources.list files
Julian Andres Klode [Wed, 19 Aug 2015 07:50:19 +0000 (09:50 +0200)] 
Support tabs in sources.list files

Also support vertical tabs, as isspace() does the same.

Closes: #796067
9 years agoAdd support for "apt-cache showsrc --only-source srcpkgname"
Michael Vogt [Tue, 18 Aug 2015 18:39:59 +0000 (20:39 +0200)] 
Add support for "apt-cache showsrc --only-source srcpkgname"

Thanks: Steve Slangasek for the suggestion
Closes: 695633
9 years agoProvide "apt-get full-upgrade" to match "apt full-upgrade"
Michael Vogt [Tue, 18 Aug 2015 15:04:47 +0000 (17:04 +0200)] 
Provide "apt-get full-upgrade" to match "apt full-upgrade"

9 years agoapt-pkg/contrib/srvrec.cc: res_query() should not generate a _error->Warning()
Michael Vogt [Tue, 18 Aug 2015 14:46:34 +0000 (16:46 +0200)] 
apt-pkg/contrib/srvrec.cc: res_query() should not generate a _error->Warning()

9 years agocleanup
Michael Vogt [Tue, 18 Aug 2015 13:41:02 +0000 (15:41 +0200)] 
cleanup

9 years agoMerge remote-tracking branch 'upstream/debian/experimental' into feature/srv-records
Michael Vogt [Tue, 18 Aug 2015 09:57:35 +0000 (11:57 +0200)] 
Merge remote-tracking branch 'upstream/debian/experimental' into feature/srv-records

9 years agoMerge branch 'debian/experimental' into feature/srv-records
Michael Vogt [Tue, 18 Aug 2015 09:54:05 +0000 (11:54 +0200)] 
Merge branch 'debian/experimental' into feature/srv-records

Conflicts:
cmdline/apt-helper.cc
cmdline/makefile

9 years agoreleasing package apt version 1.1~exp9 1.1.exp9
Michael Vogt [Mon, 17 Aug 2015 16:50:43 +0000 (18:50 +0200)] 
releasing package apt version 1.1~exp9

9 years agoDo not fail if building test/ fails (issues with parallel builds)
Michael Vogt [Tue, 18 Aug 2015 08:44:50 +0000 (10:44 +0200)] 
Do not fail if building test/ fails (issues with parallel builds)

Git-Dch: ignore

9 years agoFix the test suite harder
Julian Andres Klode [Mon, 17 Aug 2015 16:58:34 +0000 (18:58 +0200)] 
Fix the test suite harder

Gbp-Dch: ignore

9 years agoFix the test suite again
Julian Andres Klode [Mon, 17 Aug 2015 16:37:09 +0000 (18:37 +0200)] 
Fix the test suite again

Gbp-Dch: ignore

9 years agoRe-add support for G++ 4.8 and configure travis to use it
Julian Andres Klode [Mon, 17 Aug 2015 16:33:22 +0000 (18:33 +0200)] 
Re-add support for G++ 4.8 and configure travis to use it

This makes tests work again!

Gbp-Dch: ignore

9 years agoReally fix all iwyu issues
Michael Vogt [Mon, 17 Aug 2015 13:48:49 +0000 (15:48 +0200)] 
Really fix all iwyu issues

Git-Dch: ignore

9 years agodebian/NEWS: Mention new pinning algorithm added in 2.0~exp1
Julian Andres Klode [Mon, 17 Aug 2015 12:56:23 +0000 (14:56 +0200)] 
debian/NEWS: Mention new pinning algorithm added in 2.0~exp1

9 years agoFix all the wrong removals of includes that iwyu got wrong
Michael Vogt [Mon, 17 Aug 2015 12:29:02 +0000 (14:29 +0200)] 
Fix all the wrong removals of includes that iwyu got wrong

Git-Dch: ignore

9 years agoCleanup includes after running iwyu
Michael Vogt [Mon, 17 Aug 2015 10:01:45 +0000 (12:01 +0200)] 
Cleanup includes after running iwyu

9 years agoDo not crash in 'apt show' for non-installed packages
Julian Andres Klode [Mon, 17 Aug 2015 08:10:57 +0000 (10:10 +0200)] 
Do not crash in 'apt show' for non-installed packages

For a non-installed package, manual_installed was set to the null
pointer. This was passed to Tag::Rewrite, which expects an string
(empty for null-type values) and the conversion from null pointer
to string does not work correctly.

9 years agoReplace "extra" in "the following extra packages [...]" by "additional"
Julian Andres Klode [Sun, 16 Aug 2015 21:11:07 +0000 (23:11 +0200)] 
Replace "extra" in "the following extra packages [...]" by "additional"

This breaks the translation for no big gain, but we broke enough strings
already for that to not really matter anymore.

Closes: #82430
9 years agoMake pkgCache::Priority() static, it does not need the instance
Julian Andres Klode [Sun, 16 Aug 2015 15:25:51 +0000 (17:25 +0200)] 
Make pkgCache::Priority() static, it does not need the instance

It still compiles after the change, so just merge it.

Closes: #448627
9 years agoinstall: If package already is the newest version, display version
Julian Andres Klode [Sun, 16 Aug 2015 15:07:43 +0000 (17:07 +0200)] 
install: If package already is the newest version, display version

Also do it unconditionally, as it does not hurt.

Closes: #315149
9 years agoUse terminfo's typical save_cursor/restore_cursor sequences
James McCoy [Mon, 8 Dec 2014 03:15:36 +0000 (22:15 -0500)] 
Use terminfo's typical save_cursor/restore_cursor sequences

Not all terminals understand DOS' escape sequences for save/restore
cursor, so use the more typical sequences from terminfo.

Closes: #772521
Signed-off-by: James McCoy <jamessan@debian.org>
9 years agoShow full package records in apt-cache search -f
Kusanagi Kouichi [Sun, 16 Aug 2015 14:45:04 +0000 (16:45 +0200)] 
Show full package records in apt-cache search -f

This just changes the DoSearch code to use DisplayRecord to
display the record when the full record is requested.

Closes: #660851
[jak@debian.org: Wrote the commit message]

9 years agoWhen looking if Provides match, OR them with the normal patches
Julian Andres Klode [Sun, 16 Aug 2015 13:59:22 +0000 (15:59 +0200)] 
When looking if Provides match, OR them with the normal patches

Simply overriding the value caused patterns that previously matched
a real package name to not match anymore.

Closes: #760868
9 years agoDocument the general effect of the comma operator
Julian Andres Klode [Sat, 15 Aug 2015 13:33:40 +0000 (15:33 +0200)] 
Document the general effect of the comma operator

Closes: #574939
9 years agoAdd GetPriority(VerIterator) to pkgDepCache::Policy
Julian Andres Klode [Sat, 15 Aug 2015 09:52:50 +0000 (11:52 +0200)] 
Add GetPriority(VerIterator) to pkgDepCache::Policy

Also unify the case of considerFiles and ConsiderFiles to be
ConsiderFiles in all cases.

Gbp-Dch: ignore

9 years agocachefile.cc: Do not ignore return value of pkgDepCache::Init()
Julian Andres Klode [Sat, 15 Aug 2015 08:48:59 +0000 (10:48 +0200)] 
cachefile.cc: Do not ignore return value of pkgDepCache::Init()

Currently, this always returns true, but it might start returning
false at some point in the future...

Gbp-Dch: ignore

9 years agoupdate: Check if the cache could be opened, don't just assume it
Julian Andres Klode [Sat, 15 Aug 2015 08:44:57 +0000 (10:44 +0200)] 
update: Check if the cache could be opened, don't just assume it

This seems to cause Bug#756162, as in that case the depcache
was NULL.

I'm not entirely sure how that happens, but it's better to
be check here rather then crash later on.

Closes: #756162
9 years agodoc/files.dbk: Improve documentation for {src,}pkgcache.bin
Julian Andres Klode [Fri, 14 Aug 2015 21:57:13 +0000 (23:57 +0200)] 
doc/files.dbk: Improve documentation for {src,}pkgcache.bin

This should be enough for most persons.

Closes: #465551
9 years agoapt-get: allow non-root --print-uris build-dep
Julian Andres Klode [Fri, 14 Aug 2015 21:45:17 +0000 (23:45 +0200)] 
apt-get: allow non-root --print-uris build-dep

Closes: #283400
9 years agoadd {contrib,non-free}/{metapackages,oldlibs} to section specialhandling
David Kalnischkies [Fri, 14 Aug 2015 20:54:20 +0000 (22:54 +0200)] 
add {contrib,non-free}/{metapackages,oldlibs} to section specialhandling

Closes: 788320
9 years agoapt-cache(8): Drop the #versions >= #package names comparison
Julian Andres Klode [Fri, 14 Aug 2015 20:43:00 +0000 (22:43 +0200)] 
apt-cache(8): Drop the #versions >= #package names comparison

Closes: #691281
9 years agoAlso add 'in combination with the other options.' to another error
Julian Andres Klode [Fri, 14 Aug 2015 20:30:41 +0000 (22:30 +0200)] 
Also add 'in combination with the other options.' to another error

Gbp-Dch: ignore

9 years agoSet Acquire::Changelogs::URI::Origin::Tanglu for Tanglu changelogs
Julian Andres Klode [Fri, 14 Aug 2015 19:22:43 +0000 (21:22 +0200)] 
Set Acquire::Changelogs::URI::Origin::Tanglu for Tanglu changelogs

9 years agodebian/control: Remove XS- from Testsuite and bump Standards-Version
Julian Andres Klode [Fri, 14 Aug 2015 19:11:40 +0000 (21:11 +0200)] 
debian/control: Remove XS- from Testsuite and bump Standards-Version

Thanks: Lintian

9 years agodebian/control: Drop the versioned python-apt conflict
Julian Andres Klode [Fri, 14 Aug 2015 19:09:11 +0000 (21:09 +0200)] 
debian/control: Drop the versioned python-apt conflict

Thanks: Lintian

9 years agodebian/control: Replace debian by Debian
Julian Andres Klode [Fri, 14 Aug 2015 19:06:41 +0000 (21:06 +0200)] 
debian/control: Replace debian by Debian

Thanks: Lintian

9 years agochangelog: Replace reenable by re-enable everywhere
Julian Andres Klode [Fri, 14 Aug 2015 19:05:50 +0000 (21:05 +0200)] 
changelog: Replace reenable by re-enable everywhere

Thanks: Lintian

9 years agoapt: Add autoremove and auto-remove commands
Julian Andres Klode [Fri, 14 Aug 2015 18:35:18 +0000 (20:35 +0200)] 
apt: Add autoremove and auto-remove commands

9 years agoMake apt compile with clang++ again
Michael Vogt [Fri, 14 Aug 2015 17:44:25 +0000 (19:44 +0200)] 
Make apt compile with clang++ again

This allows us to run the clang static analyzer and to run the
testsuite with the clang MemorySanitizer.

9 years agoMake auto-remove and auto-clean aliases for the versions without -
Julian Andres Klode [Fri, 14 Aug 2015 16:27:24 +0000 (18:27 +0200)] 
Make auto-remove and auto-clean aliases for the versions without -

Some people type them instead of autoremove and autoclean, so make
them happy.

Closes: #274159
Makes-Happy: Ansgar

9 years agoapt_preferences(5): Mention overlapping of pin matches
Julian Andres Klode [Fri, 14 Aug 2015 15:26:48 +0000 (17:26 +0200)] 
apt_preferences(5): Mention overlapping of pin matches

9 years agoapt_preferences(5): Correct default pin assignment documentation
Julian Andres Klode [Fri, 14 Aug 2015 15:22:30 +0000 (17:22 +0200)] 
apt_preferences(5): Correct default pin assignment documentation

This was broken, as higher pins were also assigned to versions
that are installed.

Closes: #623706
9 years agoapt-cache(8): Mention that --names-only search provides
Julian Andres Klode [Fri, 14 Aug 2015 14:57:02 +0000 (16:57 +0200)] 
apt-cache(8): Mention that --names-only search provides

Closes: #618017
9 years agoapt-cache: Show an error if stats gets any arguments
Julian Andres Klode [Fri, 14 Aug 2015 13:07:28 +0000 (15:07 +0200)] 
apt-cache: Show an error if stats gets any arguments

Closes: #153161
9 years agoSay "in combination with the other options" if an option is not understood
Julian Andres Klode [Fri, 14 Aug 2015 12:51:02 +0000 (14:51 +0200)] 
Say "in combination with the other options" if an option is not understood

Closes: #762758
9 years agoMention that source order only matter per version
Julian Andres Klode [Fri, 14 Aug 2015 12:42:08 +0000 (14:42 +0200)] 
Mention that source order only matter per version

Closes: #617445
9 years agoReplace UINT_MAX with std::numeric_limits<unsigned int>::max()
Julian Andres Klode [Fri, 14 Aug 2015 11:53:30 +0000 (13:53 +0200)] 
Replace UINT_MAX with std::numeric_limits<unsigned int>::max()

Gbp-Dch: ignore

9 years agoAdd integration test for Pin-Priority range checks
Julian Andres Klode [Fri, 14 Aug 2015 11:44:28 +0000 (13:44 +0200)] 
Add integration test for Pin-Priority range checks

Gbp-Dch: ignore

9 years agoReplace --force-yes by various options starting with --allow
Julian Andres Klode [Fri, 14 Aug 2015 09:49:45 +0000 (11:49 +0200)] 
Replace --force-yes by various options starting with --allow

This enables more fine grained control over such exceptions.

9 years agoMerge branch 'debian/experimental' of https://github.com/DonKult/apt into debian...
Julian Andres Klode [Fri, 14 Aug 2015 08:50:56 +0000 (10:50 +0200)] 
Merge branch 'debian/experimental' of https://github.com/DonKult/apt into debian/experimental

9 years agopo/fr.po: Remove the unbreakable space before ! in the confirm string
Julian Andres Klode [Fri, 14 Aug 2015 08:02:08 +0000 (10:02 +0200)] 
po/fr.po: Remove the unbreakable space before ! in the confirm string

This was probably really annoying for French people wanting to remove
essential packages, sorry about that.

Closes: #727680
9 years agoAccept --upgradeable as synonym for --upgradable
Julian Andres Klode [Thu, 13 Aug 2015 19:14:00 +0000 (21:14 +0200)] 
Accept --upgradeable as synonym for --upgradable

It's a tiny diff, so why not? But no need to document it.

Closes: #787846
9 years agoUse setresuid() and setresgid() where available
Julian Andres Klode [Wed, 24 Sep 2014 20:18:16 +0000 (22:18 +0200)] 
Use setresuid() and setresgid() where available

9 years agoDeprecate SPtrArray<T> and convert everyone to unique_ptr<T[]>
Julian Andres Klode [Thu, 13 Aug 2015 09:28:32 +0000 (11:28 +0200)] 
Deprecate SPtrArray<T> and convert everyone to unique_ptr<T[]>

More standardization

9 years agoMark SPtr as deprecated, and convert users to std::unique_ptr
Julian Andres Klode [Thu, 13 Aug 2015 08:49:31 +0000 (10:49 +0200)] 
Mark SPtr as deprecated, and convert users to std::unique_ptr

Switch to std::unique_ptr, as this is safer than SPtr.

9 years agoC++11: Switch from auto_ptr to unique_ptr
Julian Andres Klode [Thu, 13 Aug 2015 08:43:49 +0000 (10:43 +0200)] 
C++11: Switch from auto_ptr to unique_ptr

This is nicer

9 years agoRemove an invalid fi from a testcase
Julian Andres Klode [Thu, 13 Aug 2015 08:48:22 +0000 (10:48 +0200)] 
Remove an invalid fi from a testcase

Gbp-Dch: ignore

9 years agoFix integration tests for the removal of the Package pin output
Julian Andres Klode [Thu, 13 Aug 2015 08:31:50 +0000 (10:31 +0200)] 
Fix integration tests for the removal of the Package pin output

This should make them work again.

9 years agoDrop the Section field from pkgCache::Package again
Julian Andres Klode [Wed, 12 Aug 2015 21:44:33 +0000 (23:44 +0200)] 
Drop the Section field from pkgCache::Package again

This somehow got back, we don't really know why. Emulate the
Section() method in the PkgIterator by looking at the section
of the head of the VersionList.

9 years agoapt_preferences(5): Re-document how priorities are calculated
Julian Andres Klode [Wed, 12 Aug 2015 18:46:00 +0000 (20:46 +0200)] 
apt_preferences(5): Re-document how priorities are calculated

The old text did not match either the old or the new implementation,
so let's rewrite it to explain the new implementation.

Closes: #554773
9 years agopolicy: Be more strict about parsing pin files, and document prio 0
Julian Andres Klode [Wed, 12 Aug 2015 18:44:40 +0000 (20:44 +0200)] 
policy: Be more strict about parsing pin files, and document prio 0

Treat invalid pin priorities and overflows as an error.

Closes: #429912
9 years agoapt-cache: Improve translateability of the "with priority" thing
Julian Andres Klode [Wed, 12 Aug 2015 16:01:24 +0000 (18:01 +0200)] 
apt-cache: Improve translateability of the "with priority" thing

Gbp-Dch: ignore

9 years agoOnly make Upgradable() return true for packages with a candidate
Julian Andres Klode [Wed, 12 Aug 2015 11:10:32 +0000 (13:10 +0200)] 
Only make Upgradable() return true for packages with a candidate

If there is no candidate, the package should not be considered
upgradeable.

LP: #896689

9 years agoapt-cache: Modify policy output to use per-version pins
Julian Andres Klode [Wed, 12 Aug 2015 11:08:51 +0000 (13:08 +0200)] 
apt-cache: Modify policy output to use per-version pins

Also optionally enable old output by setting APT::Policy=0.

9 years agoAdd a parameter ConsiderFiles to GetPriority(VerIterator)
Julian Andres Klode [Wed, 12 Aug 2015 11:07:56 +0000 (13:07 +0200)] 
Add a parameter ConsiderFiles to GetPriority(VerIterator)

This allows us to exclude files from being considered for the
priority, so it will return only specific-version matches.