]> git.saurik.com Git - apt.git/log
apt.git
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.

9 years agouse a=experimental instead n=experimental in pin documentation
Johannes Schauer [Sun, 26 Apr 2015 07:58:05 +0000 (09:58 +0200)] 
use a=experimental instead n=experimental in pin documentation

Closes: 783343
9 years agodocument APT::Periodic::RandomSleep
Tomas Pospisek [Tue, 27 Jan 2015 13:10:38 +0000 (14:10 +0100)] 
document APT::Periodic::RandomSleep

The documentation in the patch is from
https://help.ubuntu.com/community/AutomaticSecurityUpdates

That page is licensed under Creative Commons Attribution-ShareAlike
3.0. Because I'm unsure how that license meshes with apt's license
I've not copied the text but formulated the same information freely
in my own words.

The original text was contributed by Chris Bainbridge [1][3]
and Kees Cook [2]. Thanks to them.

[1] https://help.ubuntu.com/community/AutomaticSecurityUpdates?action=diff&rev1=40&rev2=41
[2] https://help.ubuntu.com/community/AutomaticSecurityUpdates?action=diff&rev1=38&rev2=39
[3] https://help.ubuntu.com/community/AutomaticSecurityUpdates?action=diff&rev1=37&rev2=38

Closes: 776380
Thanks: Chris Bainbridge and Kees Cook for initial text

9 years agoDo not set unhonored DPKG_NO_TSTP variable for dpkg
Guillem Jover [Tue, 14 Oct 2014 11:52:33 +0000 (13:52 +0200)] 
Do not set unhonored DPKG_NO_TSTP variable for dpkg

Support for that variable was removed in dpkg in 1.15.6, in commit
6f037003e8b96878b485efb7cbd1f846e3bf4e97.

Closes: #765366
9 years agodocument VERSION 2 (and 3) pre-install-pkgs hook interface
Jonathan Nieder [Tue, 11 Aug 2015 20:07:18 +0000 (22:07 +0200)] 
document VERSION 2 (and 3) pre-install-pkgs hook interface

[Commiter: Patch adapted to apply to current version of the manpage and
added/moved a few words about Version 3 to make it fit better]

Closes: 627188
9 years agoReplace all "press enter" occurrences with "press [Enter]"
Luca Bruno [Tue, 11 Aug 2015 18:08:43 +0000 (20:08 +0200)] 
Replace all "press enter" occurrences with "press [Enter]"

Thanks: Andre Felipe Machado for initial patch
Closes: 414848
9 years agoreplace direct calls to egrep with grep -E
Daniel Hartwig [Tue, 11 Aug 2015 17:56:31 +0000 (19:56 +0200)] 
replace direct calls to egrep with grep -E

The rest of the initial patch is not needed or incorrect in our usage.
Big changes for the dselect scripts seem unneeded as well as those are
hardly used by anyone anymore…

[commit message written by commiter]

Closes: 255577
Thanks: David Weinehall for initial patch

9 years agoremove Dir:: scope limit of RootDir in the documentation
David Kalnischkies [Tue, 11 Aug 2015 17:24:24 +0000 (19:24 +0200)] 
remove Dir:: scope limit of RootDir in the documentation

RootDir doesn't only effect Dir-scope but all FindDir directories, so
document it accordingly.

Closes: 659387
9 years agosupport setting a port for rsh:// in sources.list
Daniel Hartwig [Tue, 11 Aug 2015 15:59:13 +0000 (17:59 +0200)] 
support setting a port for rsh:// in sources.list

[Commiter comment: Untested, but looks and compiles fine, so what could
possibly go wrong]

Closes: 624727
9 years agopo-fixups: fill Project-Id-Version and Encoding correctly
Guillem Jover [Tue, 11 Aug 2015 15:41:27 +0000 (17:41 +0200)] 
po-fixups: fill Project-Id-Version and Encoding correctly

Closes: 612996
9 years agotravis: add ppa:ubuntu-toolschain-r/test as source for gcc-5
David Kalnischkies [Mon, 10 Aug 2015 17:00:16 +0000 (19:00 +0200)] 
travis: add ppa:ubuntu-toolschain-r/test as source for gcc-5

This makes travis-ci able to run our tests again.
Sometimes.
If it doesn't spontaneously fails with internal gcc errors…

Git-Dch: Ignore

9 years agoMakefile: Add a make fast command for development
Julian Andres Klode [Wed, 12 Aug 2015 09:39:49 +0000 (11:39 +0200)] 
Makefile: Add a make fast command for development

This excludes dselect, po, and doc.

9 years agoapt.cron.daily: Reference 10periodic instead of 02periodic
Julian Andres Klode [Wed, 12 Aug 2015 09:10:16 +0000 (11:10 +0200)] 
apt.cron.daily: Reference 10periodic instead of 02periodic

LP: #1332106

9 years agodebian/control: Rename libapt-pkg4.15 -> libapt-pkg5.0
Julian Andres Klode [Tue, 11 Aug 2015 18:02:02 +0000 (20:02 +0200)] 
debian/control: Rename libapt-pkg4.15 -> libapt-pkg5.0

9 years agodebian/gbp.conf: Set multimaint-merge = True
Julian Andres Klode [Tue, 11 Aug 2015 17:40:22 +0000 (19:40 +0200)] 
debian/gbp.conf: Set multimaint-merge = True

Gbp-Dch: ignore

9 years agoAnnotate more methods with APT_OVERRIDE
Julian Andres Klode [Tue, 11 Aug 2015 13:58:03 +0000 (15:58 +0200)] 
Annotate more methods with APT_OVERRIDE

Gbp-Dch: ignore
Reported-By: g++ -Wsuggest-override
Thanks: g++ -Wsuggest-override

9 years agoBump apt-inst SONAME to 2.0 to adjust for the ABI break in apt-pkg
Julian Andres Klode [Tue, 11 Aug 2015 12:37:29 +0000 (14:37 +0200)] 
Bump apt-inst SONAME to 2.0 to adjust for the ABI break in apt-pkg

9 years agoMerge changelog entries from sid-gcc5
Julian Andres Klode [Tue, 11 Aug 2015 12:10:17 +0000 (14:10 +0200)] 
Merge changelog entries from sid-gcc5

9 years agopo: Update Simplified Chinese programs translation
Zhou Mo [Mon, 22 Jun 2015 14:38:32 +0000 (14:38 +0000)] 
po: Update Simplified Chinese programs translation

* fix a wrong translation.
* update some translations.

9 years agopo: update zh_CN translation slightly
Zhou Mo [Mon, 15 Jun 2015 01:39:31 +0000 (01:39 +0000)] 
po: update zh_CN translation slightly

9 years agoExecFork: Use /proc/self/fd to determine which files to close
Julian Andres Klode [Mon, 25 May 2015 14:45:05 +0000 (16:45 +0200)] 
ExecFork: Use /proc/self/fd to determine which files to close

This significantly reduces the number of files that have to be closed
and seems to be faster, despite the additional reads.

On systems where /proc/self/fd is not available, we fallback to the
old code that closes all file descriptors >= 3.

Closes: #764204
9 years agoMake QItem a subclass of DescItem
Julian Andres Klode [Tue, 11 Aug 2015 10:02:39 +0000 (12:02 +0200)] 
Make QItem a subclass of DescItem

CurrentItem previously was a DescItem, so let's make QItem a
DescItem to not break things.

9 years agoRe-introduce None as a deprecated alias for No
Julian Andres Klode [Tue, 11 Aug 2015 10:01:11 +0000 (12:01 +0200)] 
Re-introduce None as a deprecated alias for No

Gbp-Dch: ignore

9 years agoDrop C++11 elements from headers
Julian Andres Klode [Tue, 11 Aug 2015 09:49:21 +0000 (11:49 +0200)] 
Drop C++11 elements from headers

9 years agoapt-get: Do not include apt-pkg/indexrecords.h
Julian Andres Klode [Tue, 11 Aug 2015 09:48:51 +0000 (11:48 +0200)] 
apt-get: Do not include apt-pkg/indexrecords.h

It's gone.

Gbp-Dch: ignore

9 years agoFix an obscure warning from GCC
Julian Andres Klode [Tue, 11 Aug 2015 09:05:57 +0000 (11:05 +0200)] 
Fix an obscure warning from GCC

It complained about the previous code:

apt-pkg/sourcelist.cc: In destructor ‘pkgSourceList::~pkgSourceList()’:
apt-pkg/sourcelist.cc:278:4: warning: cannot optimize loop, the loop counter may overflow [-Wunsafe-loop-optimizations]
    for (pkgIndexFile * const File : VolatileFiles)
    ^
There really cannot be an overflow, though. Rewriting it like this
seems to fix it.

9 years agoSimply ignore cruft in the status files, do not treat it as prio 0
Julian Andres Klode [Tue, 11 Aug 2015 08:21:29 +0000 (10:21 +0200)] 
Simply ignore cruft in the status files, do not treat it as prio 0

This was broken in case all other sources were < 0.

9 years agoReplace INT_MIN with std::numeric_limits<int>::min
Julian Andres Klode [Tue, 11 Aug 2015 08:20:58 +0000 (10:20 +0200)] 
Replace INT_MIN with std::numeric_limits<int>::min

This should fix travis compilation errors.

Gbp-Dch: ignore

9 years agoinitialize PinVers to a nullptr
David Kalnischkies [Mon, 10 Aug 2015 15:47:49 +0000 (17:47 +0200)] 
initialize PinVers to a nullptr

This makes test-bug-254770-segfault-if-cache-not-buildable happy.

Git-Dch: Ignore

9 years agomove manual-bit from 'oldlibs' pkg to its dependencies
David Kalnischkies [Mon, 10 Aug 2015 14:08:21 +0000 (16:08 +0200)] 
move manual-bit from 'oldlibs' pkg to its dependencies

oldlibs used to be in APT::Never-MarkAuto-Sections so that old
transition packages can be removed without causing the then
(autoinstalled) renamed package to be autoremoved. It isn't ideal
through as ideally you want the oldlibs package to be removed after
nothing depends on it anymore regardless of if you have once installed
it by hand or not – and if you had the package talking over (the
dependencies) should carry the manual bit now as they are the real deal
now.

As an added bonus if the package has no dependencies because it is an
oldlibs without a direct replacement you should move away from (like
lib1 and lib2 are currently in the archive, but there will hopefully
only be lib2 in the release) you get a lib1 marked as auto.

If the user still needs the oldlibs package for some reason all he has
to do is mark it as manual once as this move is only performed if a
installed package changes its section from a not-Move-Autobit-Sections
to a Move-Autobit-Sections.

9 years agomove APT::Never-MarkAuto-Sections handling to MarkDelete
David Kalnischkies [Mon, 10 Aug 2015 12:44:14 +0000 (14:44 +0200)] 
move APT::Never-MarkAuto-Sections handling to MarkDelete

Having the handling in MarkInstall means that it just effects
installation of the metapackage, but if the dependencies change the new
dependencies aren't protected (and the old dependencies are still
protected for no 'reason'). Having it in MarkDelete means that if a
metapackage is sheduled for removal all its currently installed
dependencies are marked as manual, which helps against both as in this
case there is no new/old and additionally if a user decides the
installation of a metapackage was wrong he can just remove it
explicitely avoid the manual marking entirely.

9 years agono value for MultiArch field is 'no', not 'none'
David Kalnischkies [Mon, 10 Aug 2015 09:31:28 +0000 (11:31 +0200)] 
no value for MultiArch field is 'no', not 'none'

Git-Dch: Ignore

9 years agochange to libapt-pkg abi 5.0 with versioned symbols
David Kalnischkies [Mon, 10 Aug 2015 09:08:35 +0000 (11:08 +0200)] 
change to libapt-pkg abi 5.0 with versioned symbols

We changed an aweful lot of stuff, so 5.0 is properly better than 4.X as
a semantic version and as we are at it lets add some trivial symbol
versioning as well: We just mark all exported symbols with the same
version for now. This isn't really the proper thing to do as if we add
symbols in later versions (with the same abi) they will get the same
symbols version, but our .symbols file will protect us from the problems
arising from this as it will ensure that a package acutally depends on a
version of the abi high enough to include the symbol.

9 years agoupdate symbols file to current state of affairs
David Kalnischkies [Sun, 9 Aug 2015 18:26:37 +0000 (20:26 +0200)] 
update symbols file to current state of affairs

cxx11abi transition happens, we changed a bunch of methods and all that
stuff which is really good™ for an abi. Lets just slowly start to stop
changing more and a first step is to document the current so changes
aren't hidding in a big wall of change anymore.

Git-Dch: Ignore

9 years agomark again deps of pkgs in APT::Never-MarkAuto-Sections as manual
David Kalnischkies [Mon, 3 Aug 2015 05:00:33 +0000 (07:00 +0200)] 
mark again deps of pkgs in APT::Never-MarkAuto-Sections as manual

In 50ef3344c3afaaf9943142906b2f976a0337d264 (and similar for other
branches), while 'fixing' the edgecase of a package being in multiple
sections (e.g. moved from libs to oldlibs in newer releases) I
accidently broke the feature itself completely by operating on the
package itself and no longer on its dependencies…

The behaviour isn't ideal in multiple ways, which we are hopefully able
to fix with new ideas as mentioned in the buglog, but until then the
functionality of this "hack" should be restored.

Reported-By: Raphaël Hertzog <hertzog@debian.org>
Tested-By: Adam Conrad <adconrad@ubuntu.com>
Closes: 793360
LP: 1479207
Thanks: Raphaël Hertzog and Adam Conrad for detailed reports and initial patches

9 years agodrop extra newline in 'Failed to fetch' and 'GPG error' message
David Kalnischkies [Sun, 9 Aug 2015 17:01:49 +0000 (19:01 +0200)] 
drop extra newline in 'Failed to fetch' and 'GPG error' message

I never understood why there is an extra newline in those messages, so
now is as good time as any to drop them. Lets see if someone complains
with a good reason to keep it…

9 years agoenhance "hit paywall" error message to mention the probable cause
David Kalnischkies [Sun, 9 Aug 2015 15:40:57 +0000 (17:40 +0200)] 
enhance "hit paywall" error message to mention the probable cause

Reporting errors from Done() is bad for progress reporting and such, so
factoring this out is a good idea and we start with moving the supposed-
to-be clearsigned file isn't clearsigned out first – improving the error
message in the process as we use the same message for a similar case
(NODATA) as this is what I have to look at with the venue wifi at
DebCamp and the old errormessage doesn't really say anything.

9 years agodrop obsolete explicit :none handling in pkgCacheGen
David Kalnischkies [Mon, 20 Jul 2015 11:34:25 +0000 (13:34 +0200)] 
drop obsolete explicit :none handling in pkgCacheGen

We archieve the same without the special handling now, so drop this code.
Makes supporting this abdomination a little longer bearable as well.

Git-Dch: Ignore

9 years agoparse packages from all architectures into the cache
David Kalnischkies [Mon, 20 Jul 2015 10:32:46 +0000 (12:32 +0200)] 
parse packages from all architectures into the cache

Now that we can dynamically create dependencies and provides as needed
rather than requiring to know with which architectures we will deal
before running we can allow the listparser to parse all records rather
than skipping records of "unknown" architectures.

This can e.g. happen if a user has foreign architecture packages in his
status file without dpkg knowing about this architecture (or apt
configured in this way).

A sideeffect is that now arch:all packages are (correctly) recorded as
available from any Packages file, not just from the native one – which
has its downsides for the resolver as mixed-arch source packages can
appear in different architectures at different times, but that is the
problem of the resolver and dealing with it in the parser is at best a
hack (and also depends on a helpful repository).

Another sideeffect is that his allows :none packages to appear in
Packages files again as we don't do any kind of checks now, but given
that they aren't really supported (anymore) by anyone we can live with
that.

9 years agoeliminate dead file-provides code in cache generation
David Kalnischkies [Mon, 20 Jul 2015 08:33:07 +0000 (10:33 +0200)] 
eliminate dead file-provides code in cache generation

The code was never active in production, it just sits there collecting
dust and given that it is never tested probably doesn't even work
anymore the way it was supposed to be (whatever that was exactly in the
first place). So just remove it before I have to "fix" it again next
time.

Git-Dch: Ignore

9 years agoelimate duplicated code in pkgIndexFile subclasses
David Kalnischkies [Mon, 20 Jul 2015 08:17:29 +0000 (10:17 +0200)] 
elimate duplicated code in pkgIndexFile subclasses

Trade deduplication of code for a bunch of new virtuals, so it is
actually visible how the different indexes behave cleaning up the
interface at large in the process.

Git-Dch: Ignore