]>
git.saurik.com Git - apt.git/log
Julian Andres Klode [Thu, 27 Aug 2015 11:58:14 +0000 (13:58 +0200)]
Merge branch 'feature/extractar-filefd' into debian/experimental
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.
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
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.
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.
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.
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
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'.
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
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.
David Kalnischkies [Sat, 22 Aug 2015 14:22:08 +0000 (16:22 +0200)]
fix various typos reported by codespell
Reported-By: codespell
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
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.
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
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.
Anders Jonsson [Fri, 21 Aug 2015 18:40:07 +0000 (20:40 +0200)]
Swedish program translation update
Closes: 796059
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
Julian Andres Klode [Wed, 19 Aug 2015 10:56:12 +0000 (12:56 +0200)]
test for #796070: downgrades involving essential packages
Git-Dch: Ignore
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
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
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
Michael Vogt [Fri, 21 Aug 2015 09:42:50 +0000 (11:42 +0200)]
releasing package apt version 1.1~exp10
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