]>
git.saurik.com Git - apt.git/log
Michael Vogt [Mon, 24 Aug 2015 10:39:57 +0000 (12:39 +0200)]
Fix typo
Thanks: Julian Andres Klode
Git-Dch: ignore
Michael Vogt [Fri, 21 Aug 2015 09:38:32 +0000 (11:38 +0200)]
doc/apt.conf.5.xml: document Acquire::EnableSrvRecods
Git-Dch: ignore
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
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
Michael Vogt [Thu, 20 Aug 2015 10:05:49 +0000 (12:05 +0200)]
Merge remote-tracking branch 'mvo/feature/srv-records' into debian/experimental
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.
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
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
Michael Vogt [Tue, 18 Aug 2015 15:04:47 +0000 (17:04 +0200)]
Provide "apt-get full-upgrade" to match "apt full-upgrade"
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()
Michael Vogt [Tue, 18 Aug 2015 13:41:02 +0000 (15:41 +0200)]
cleanup
Michael Vogt [Tue, 18 Aug 2015 09:57:35 +0000 (11:57 +0200)]
Merge remote-tracking branch 'upstream/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
Michael Vogt [Mon, 17 Aug 2015 16:50:43 +0000 (18:50 +0200)]
releasing package apt version 1.1~exp9
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
Julian Andres Klode [Mon, 17 Aug 2015 16:58:34 +0000 (18:58 +0200)]
Fix the test suite harder
Gbp-Dch: ignore
Julian Andres Klode [Mon, 17 Aug 2015 16:37:09 +0000 (18:37 +0200)]
Fix the test suite again
Gbp-Dch: ignore
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
Michael Vogt [Mon, 17 Aug 2015 13:48:49 +0000 (15:48 +0200)]
Really fix all iwyu issues
Git-Dch: ignore
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
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
Michael Vogt [Mon, 17 Aug 2015 10:01:45 +0000 (12:01 +0200)]
Cleanup includes after running iwyu
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.
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
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
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
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>
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]
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
Julian Andres Klode [Sat, 15 Aug 2015 13:33:40 +0000 (15:33 +0200)]
Document the general effect of the comma operator
Closes: #574939
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
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
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
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
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
David Kalnischkies [Fri, 14 Aug 2015 20:54:20 +0000 (22:54 +0200)]
add {contrib,non-free}/{metapackages,oldlibs} to section specialhandling
Closes: 788320
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
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
Julian Andres Klode [Fri, 14 Aug 2015 19:22:43 +0000 (21:22 +0200)]
Set Acquire::Changelogs::URI::Origin::Tanglu for Tanglu changelogs
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
Julian Andres Klode [Fri, 14 Aug 2015 19:09:11 +0000 (21:09 +0200)]
debian/control: Drop the versioned python-apt conflict
Thanks: Lintian
Julian Andres Klode [Fri, 14 Aug 2015 19:06:41 +0000 (21:06 +0200)]
debian/control: Replace debian by Debian
Thanks: Lintian
Julian Andres Klode [Fri, 14 Aug 2015 19:05:50 +0000 (21:05 +0200)]
changelog: Replace reenable by re-enable everywhere
Thanks: Lintian
Julian Andres Klode [Fri, 14 Aug 2015 18:35:18 +0000 (20:35 +0200)]
apt: Add autoremove and auto-remove commands
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.
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
Julian Andres Klode [Fri, 14 Aug 2015 15:26:48 +0000 (17:26 +0200)]
apt_preferences(5): Mention overlapping of pin matches
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
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
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
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
Julian Andres Klode [Fri, 14 Aug 2015 12:42:08 +0000 (14:42 +0200)]
Mention that source order only matter per version
Closes: #617445
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
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
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.
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
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
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
Julian Andres Klode [Wed, 24 Sep 2014 20:18:16 +0000 (22:18 +0200)]
Use setresuid() and setresgid() where available
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
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.
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
Julian Andres Klode [Thu, 13 Aug 2015 08:48:22 +0000 (10:48 +0200)]
Remove an invalid fi from a testcase
Gbp-Dch: ignore
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.
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.
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
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
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
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
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.
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.
Johannes Schauer [Sun, 26 Apr 2015 07:58:05 +0000 (09:58 +0200)]
use a=experimental instead n=experimental in pin documentation
Closes: 783343
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
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
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
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
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
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
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
Guillem Jover [Tue, 11 Aug 2015 15:41:27 +0000 (17:41 +0200)]
po-fixups: fill Project-Id-Version and Encoding correctly
Closes: 612996
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
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.
Julian Andres Klode [Wed, 12 Aug 2015 09:10:16 +0000 (11:10 +0200)]
apt.cron.daily: Reference 10periodic instead of 02periodic
LP: #
1332106
Julian Andres Klode [Tue, 11 Aug 2015 18:02:02 +0000 (20:02 +0200)]
debian/control: Rename libapt-pkg4.15 -> libapt-pkg5.0
Julian Andres Klode [Tue, 11 Aug 2015 17:40:22 +0000 (19:40 +0200)]
debian/gbp.conf: Set multimaint-merge = True
Gbp-Dch: ignore
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
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
Julian Andres Klode [Tue, 11 Aug 2015 12:10:17 +0000 (14:10 +0200)]
Merge changelog entries from sid-gcc5
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.
Zhou Mo [Mon, 15 Jun 2015 01:39:31 +0000 (01:39 +0000)]
po: update zh_CN translation slightly
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
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.
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
Julian Andres Klode [Tue, 11 Aug 2015 09:49:21 +0000 (11:49 +0200)]
Drop C++11 elements from headers
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
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.
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.
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
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
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.