]>
git.saurik.com Git - apt.git/log
Michael Vogt [Tue, 7 Jun 2011 11:21:47 +0000 (13:21 +0200)]
append the dist (e.g. sid, wheezy) as a query string when
asking for a suitable mirror
Michael Vogt [Tue, 7 Jun 2011 06:48:09 +0000 (08:48 +0200)]
* methods/mirror.cc:
- ignore lines starting with "#" in the mirror file
- ignore non http urls in the mirrors
David Kalnischkies [Mon, 6 Jun 2011 19:33:55 +0000 (21:33 +0200)]
revert 2114.1.12 as doxygen does this for use now
David Kalnischkies [Mon, 6 Jun 2011 19:29:16 +0000 (21:29 +0200)]
* apt-pkg/indexcopy.cc:
- Verify that the first line of an InRelease file is a PGP header
for a signed message. Otherwise a man-in-the-middle can prefix
a valid InRelease file with his own data! (CVE-2011-1829)
David Kalnischkies [Mon, 6 Jun 2011 19:23:00 +0000 (21:23 +0200)]
add a very dumb pause method to stop test-execution
Michael Vogt [Tue, 31 May 2011 08:56:06 +0000 (10:56 +0200)]
merge from lp:~mvo/apt/mvo
Michael Vogt [Tue, 31 May 2011 08:40:53 +0000 (10:40 +0200)]
apt-pkg/acquire-item.cc: only test packages file for correctness if its not empty (its ok to have empty packages files)
Michael Vogt [Tue, 31 May 2011 08:34:56 +0000 (10:34 +0200)]
merged from the debian branch
Julian Andres Klode [Mon, 30 May 2011 12:14:11 +0000 (14:14 +0200)]
Reject files known to be invalid (LP: #346386) (Closes: #627642)
Julian Andres Klode [Mon, 30 May 2011 12:04:01 +0000 (14:04 +0200)]
apt-pkg/acquire-item.cc: Reject files known to be invalid (LP: #346386) (Closes: #195301)
This commit deals with the following cases:
- First section of index file (Packages,Sources,Translation) without Package field
- Signed release files without GPG data (NODATA)
- i18n/Index files without hash sums
Handling unsigned Release files is more complicated, and the example code
using indexRecords is disabled as it can reject correct Release files
without hashes. How we can reliably check unsigned Release files is
another question, and not urgent anyway, as it should have no
dramatic effect (we could check that it is a valid RFC-822 section,
but that's a bit too long to write)
David Kalnischkies [Sat, 28 May 2011 08:56:46 +0000 (10:56 +0200)]
* cmdline/apt-config.cc:
- show Acquire::Languages and APT::Architectures settings
in 'dump' (Closes: 626739)
Jörg Sommer [Sat, 28 May 2011 08:54:10 +0000 (10:54 +0200)]
* apt-pkg/init.cc:
- don't set deprecated APT::Acquire::Translation, thanks Jörg Sommer!
Jörg Sommer [Sat, 28 May 2011 08:14:43 +0000 (10:14 +0200)]
use the correct option name in comment for Acquire::Languages
bubulle@debian.org [Wed, 25 May 2011 12:45:04 +0000 (14:45 +0200)]
Italian translation update (Milo Casagrande). Closes: #627834
Michael Vogt [Wed, 25 May 2011 12:43:05 +0000 (14:43 +0200)]
debian/changelog: next version will be 0.8.15
David Kalnischkies [Mon, 23 May 2011 16:10:48 +0000 (18:10 +0200)]
log reinstall commands in history.log
David Kalnischkies [Thu, 19 May 2011 12:16:43 +0000 (14:16 +0200)]
remove invalid pkgcache.bin and rebuild it if possible
The next invocation of APT tried to load an outdated big
(and possible io-cold) file just to end up rebuilding it
(possibly only as non-root in memory again and again), so
we remove it here and if we have a srcpkgcache we are
going to rebuild, too.
David Kalnischkies [Tue, 17 May 2011 18:20:46 +0000 (20:20 +0200)]
* cmdline/apt-get.cc:
- do not discard the error messages from the resolver and instead
only show the general 'Broken packages' message if nothing else
David Kalnischkies [Tue, 17 May 2011 16:23:20 +0000 (18:23 +0200)]
if a Breaks can't be upgraded, remove it. If it or a Conflict
can't be removed the installation of the breaker fails.
David Kalnischkies [Tue, 17 May 2011 16:22:46 +0000 (18:22 +0200)]
let the Mark methods return if their marking was successful
David Kalnischkies [Tue, 17 May 2011 16:22:18 +0000 (18:22 +0200)]
* apt-pkg/depcache.cc:
- use a boolean instead of an int for Add/Remove in AddStates
similar to how it works with AddSizes
David Kalnischkies [Tue, 17 May 2011 16:19:24 +0000 (18:19 +0200)]
remove deprecated methods which nobody should have used anyway like
pseudo-package related and/or private
David Kalnischkies [Tue, 17 May 2011 16:14:25 +0000 (18:14 +0200)]
* apt-pkg/pkgcache.h:
- clean up mess with the "all" handling in MultiArch to
fix LP: #733741 cleanly for everyone now
David Kalnischkies [Tue, 17 May 2011 15:42:01 +0000 (17:42 +0200)]
rename option APT::Solver::Name to simply APT::Solver
David Kalnischkies [Tue, 17 May 2011 15:37:33 +0000 (17:37 +0200)]
* doc/external-dependency-solver-protocol.txt:
- describe EDSP and the configuration interface around it
David Kalnischkies [Tue, 17 May 2011 15:26:59 +0000 (17:26 +0200)]
* Implement EDSP in libapt-pkg so that all front-ends which
use the internal resolver can now be used also with external
ones as the usage is hidden in between the old API
* provide two edsp solvers in apt-utils:
- 'dump' to quickly output a complete scenario and
- 'apt' to use the internal as an external resolver
David Kalnischkies [Tue, 17 May 2011 13:15:13 +0000 (15:15 +0200)]
rename I to J to avoid redefining a variable (clang warning)
David Kalnischkies [Tue, 17 May 2011 13:13:56 +0000 (15:13 +0200)]
ServerState is a struct and not a class (clang mismatch type warning)
David Kalnischkies [Tue, 17 May 2011 13:12:04 +0000 (15:12 +0200)]
remove Size >= 0 check as Itm.Size is an unsigned variable (clang warning)
Michael Vogt [Mon, 16 May 2011 13:57:52 +0000 (15:57 +0200)]
merged from lp:~donkult/apt/sid
David Kalnischkies [Mon, 16 May 2011 09:41:43 +0000 (11:41 +0200)]
* apt-pkg/packagemanager.cc:
- ensure for Multi-Arch:same packages that they are unpacked in
lock step even in immediate configuration (Closes: #618288)
bubulle@debian.org [Fri, 13 May 2011 21:00:18 +0000 (23:00 +0200)]
Galician translation update (Miguel Anxo Bouzada). Closes: #626505
David Kalnischkies [Thu, 12 May 2011 23:14:50 +0000 (01:14 +0200)]
MAP_ANON is deprecated in favor of MAP_ANONYMOUS, but telesphoreo needs
to ships a patch for this so pretend to be nice and make it work (TM)
David Kalnischkies [Thu, 12 May 2011 23:12:21 +0000 (01:12 +0200)]
* apt-pkg/contrib/netrc.cc:
- replace non-posix gnu-extension strdupa with strdup
David Kalnischkies [Thu, 12 May 2011 22:07:22 +0000 (00:07 +0200)]
rewrite new and previously satisfied important dependency detection in
MarkInstall to be a bit more easy to read and possibily a bit faster -
and add a small testcase for these situations to ensure the same behaviour
David Kalnischkies [Thu, 12 May 2011 10:45:37 +0000 (12:45 +0200)]
move the broken dependency detection above the new recommends detection
as if the recommends can't be installed there is not much sense in checking
if it a new recommends or not
David Kalnischkies [Wed, 11 May 2011 14:05:30 +0000 (16:05 +0200)]
convert a lot of places to use IsNegative instead of checking by hand
for the three different dependencies
David Kalnischkies [Wed, 11 May 2011 12:09:18 +0000 (14:09 +0200)]
if critical or-group can't be satisfied, exit directly.
David Kalnischkies [Tue, 10 May 2011 16:51:29 +0000 (18:51 +0200)]
fix order of CurrentURI and UsedMirror in Status() and Log()
David Kalnischkies [Tue, 10 May 2011 13:49:25 +0000 (15:49 +0200)]
dequote URL taken from Location in redirects as we will otherwise
quote an already quoted string in the request later (Closes: #602412)
David Kalnischkies [Tue, 10 May 2011 11:00:56 +0000 (13:00 +0200)]
send the first line of the error message to the error list and fail a bit
more nicely and in order
David Kalnischkies [Tue, 10 May 2011 10:18:08 +0000 (12:18 +0200)]
fix SubProgress to accept a Percent parameter to update the Current
with the text as otherwise the update will be ignored
David Kalnischkies [Mon, 9 May 2011 19:55:32 +0000 (21:55 +0200)]
fix package building so 'dump' is a binary not a directory
David Kalnischkies [Mon, 9 May 2011 16:00:28 +0000 (18:00 +0200)]
implement proper progress report with OpProgress
David Kalnischkies [Sat, 7 May 2011 13:49:51 +0000 (15:49 +0200)]
implement correct error reporting
David Kalnischkies [Fri, 6 May 2011 09:53:54 +0000 (11:53 +0200)]
undo the temporary progress reporting disabling which slipped into last commit
David Kalnischkies [Tue, 3 May 2011 17:59:45 +0000 (19:59 +0200)]
fix arguments for MarkInstall so packages are really marked as automatic
David Kalnischkies [Tue, 3 May 2011 15:27:11 +0000 (17:27 +0200)]
add a tiny dump solver to quickly output a scenario
David Kalnischkies [Tue, 3 May 2011 14:45:01 +0000 (16:45 +0200)]
maybe Pre-Depends are checked if they write them as Pre-Depends and
not as PreDepends (doh!) …
David Kalnischkies [Tue, 3 May 2011 12:17:29 +0000 (14:17 +0200)]
add a --solver option to apt-get
David Kalnischkies [Tue, 3 May 2011 12:15:52 +0000 (14:15 +0200)]
ship the apt-internal-solver in apt-utils package and link it to
/usr/lib/apt/solvers so we have it available for playing as 'apt'
David Kalnischkies [Tue, 3 May 2011 12:05:13 +0000 (14:05 +0200)]
add a fair round of doxygen comments to the edsp header
David Kalnischkies [Tue, 3 May 2011 08:51:55 +0000 (10:51 +0200)]
tell the resolver a package is set on hold if it was set by the user
to Keep which happens for example if a user decides to "remove" a not
installed package to forbid that it's part of the solution
David Kalnischkies [Tue, 3 May 2011 08:50:25 +0000 (10:50 +0200)]
implement external solver calling for upgrade and dist-upgrade, too
David Kalnischkies [Tue, 3 May 2011 08:38:49 +0000 (10:38 +0200)]
work on requests with the correct upgrade/dist-upgrade/else resolver
David Kalnischkies [Mon, 2 May 2011 16:08:13 +0000 (18:08 +0200)]
parse correctly the Hold: lines into Pkg->SelectedState = Hold
David Kalnischkies [Mon, 2 May 2011 15:06:47 +0000 (17:06 +0200)]
doesn't execute autoremove marker setting if an external solver is called
and instead rely on the Autoremove tagging to show us what could be done.
(apt-internal-solver doesn't support this currently as it doesn't load
the auto-information into the cache)
David Kalnischkies [Mon, 2 May 2011 11:55:51 +0000 (13:55 +0200)]
refactor: move solver execution into his own EDSP method
David Kalnischkies [Mon, 2 May 2011 11:22:14 +0000 (13:22 +0200)]
handle Dir::Bin::Solvers as a list of directories and find the
solver in this list of directories
David Kalnischkies [Mon, 2 May 2011 10:23:13 +0000 (12:23 +0200)]
reduce the buffer size so we get a sort of realtime progress report
and print the time of output at the front of the progress report
so we can see the delay
David Kalnischkies [Mon, 2 May 2011 09:52:28 +0000 (11:52 +0200)]
move the mapping generation to the top as the response reading is
currently waiting for the solver to complete and not non-blocking
so we can generate the map while waiting for the solver
David Kalnischkies [Mon, 2 May 2011 09:51:44 +0000 (11:51 +0200)]
implement optional Progress report in EDSP
David Kalnischkies [Mon, 2 May 2011 08:41:38 +0000 (10:41 +0200)]
merge single-arch :arch fix from my sid branch
David Kalnischkies [Thu, 28 Apr 2011 23:20:44 +0000 (01:20 +0200)]
Location header in redirects should be absolute URI, but some
servers just send an absolute path so still deal with it properly
Julian Andres Klode [Wed, 27 Apr 2011 12:52:49 +0000 (14:52 +0200)]
* debian/control:
- Move ${shlibs:Depends} to Pre-Depends, as we do not want APT
unpacked if a library is too old and thus break upgrades
David Kalnischkies [Wed, 27 Apr 2011 12:38:48 +0000 (14:38 +0200)]
support lighttpd as test webserver but still prefer weborf
David Kalnischkies [Wed, 27 Apr 2011 08:32:53 +0000 (10:32 +0200)]
* methods/http.cc:
- add config option to ignore a closed stdin to be able to easily
use the method as a simple standalone downloader
Ben Finney [Tue, 26 Apr 2011 20:45:31 +0000 (22:45 +0200)]
* apt-pkg/acquire-item.cc:
- apply fix for poorly worded 'locate file' error message from
Ben Finney, thanks! (Closes: #623171)
David Kalnischkies [Tue, 26 Apr 2011 20:37:46 +0000 (22:37 +0200)]
* apt-pkg/acquire-worker.cc:
- print filename in the unmatching size warning (Closes: #623137)
David Kalnischkies [Tue, 26 Apr 2011 17:30:21 +0000 (19:30 +0200)]
* test/versions.lst:
- disable obscure version number tests with versions dpkg doesn't
allow any more as they don't start with a number
David Kalnischkies [Tue, 26 Apr 2011 17:15:29 +0000 (19:15 +0200)]
* apt-pkg/deb/debmetaindex.cc:
- do not download TranslationIndex if no Translation-* will be
downloaded later on anyway (Closes: #624218)
Chris Leick [Tue, 26 Apr 2011 15:43:15 +0000 (17:43 +0200)]
* doc/po/de.po:
- undo the translation of the command 'dump' in manpage of apt-config
as report by Burghard Grossmann on debian-l10n-german, thanks!
David Kalnischkies [Tue, 26 Apr 2011 15:29:54 +0000 (17:29 +0200)]
provide a 'dpkg --set-selections' wrapper to set/release holds
David Kalnischkies [Mon, 25 Apr 2011 13:59:45 +0000 (15:59 +0200)]
add scenario command to output a complete or limited scenario
David Kalnischkies [Mon, 25 Apr 2011 13:59:19 +0000 (15:59 +0200)]
reorganize WriteScenario to add a WriteLimitedScenario in which a scenario
can be limited to a subset of packages with only relevant dependencies
David Kalnischkies [Mon, 25 Apr 2011 11:51:53 +0000 (13:51 +0200)]
* apt-pkg/pkgcache.cc:
- really ignore :arch in FindPkg() in non-multiarch environment
David Kalnischkies [Thu, 21 Apr 2011 16:58:07 +0000 (18:58 +0200)]
update the apt-mark manpage
David Kalnischkies [Thu, 21 Apr 2011 16:56:40 +0000 (18:56 +0200)]
add a close entry as a showmanual is provided by apt-mark now
David Kalnischkies [Thu, 21 Apr 2011 15:00:37 +0000 (17:00 +0200)]
* cmdline/apt-get.cc:
- deprecate mostly undocumented 'markauto' in favor of 'apt-mark'
* cmdline/apt-cache.cc:
- deprecate mostly undocumented 'showauto' in favor of 'apt-mark'
David Kalnischkies [Thu, 21 Apr 2011 14:46:28 +0000 (16:46 +0200)]
* cmdline/apt-mark.cc:
- reimplement apt-mark in c++
David Kalnischkies [Thu, 21 Apr 2011 14:41:07 +0000 (16:41 +0200)]
remove not existing packages left over from the testcase
David Kalnischkies [Thu, 21 Apr 2011 14:38:06 +0000 (16:38 +0200)]
simplify the code for wildcard pinning a bit
Julian Andres Klode [Thu, 21 Apr 2011 10:18:05 +0000 (12:18 +0200)]
Make purge work again for config-files (LP: #244598) (Closes: #150831)
Julian Andres Klode [Thu, 21 Apr 2011 09:25:52 +0000 (11:25 +0200)]
doc/apt-key.8.xml: Document apt-key net-update (LP: #192810)
Julian Andres Klode [Thu, 21 Apr 2011 07:53:37 +0000 (09:53 +0200)]
debian/apt.cron.daily: Check power after wait, patch by manuel-soto (LP: #705269)
David Kalnischkies [Wed, 20 Apr 2011 14:02:44 +0000 (16:02 +0200)]
merge with debian-sid branch and 0.8.14.1 release
* apt-pkg/depcache.cc:
- Really release action groups only once (Closes: #622744)
* apt-pkg/acquire-item.cc:
- Only try to rename existing Release files (Closes: #622912)
David Kalnischkies [Tue, 19 Apr 2011 18:58:14 +0000 (20:58 +0200)]
* debian/rules:
- remove unused embedded jquery by doxygen from libapt-pkg-doc
David Kalnischkies [Tue, 19 Apr 2011 17:35:59 +0000 (19:35 +0200)]
* debian/apt.lintian-overrides:
- update the missing-python-dep override to the lintian 2.5 way
David Kalnischkies [Tue, 19 Apr 2011 17:28:34 +0000 (19:28 +0200)]
* debian/apt{,-utils}.symbols:
- update both experimental symbol-files to reflect 0.8.14 state
David Kalnischkies [Tue, 19 Apr 2011 13:26:21 +0000 (15:26 +0200)]
use the version id instead of the mmap offset as APT-ID
This leads to a small performance decrease as we need to build this
mapping now while interpreting the Response but a (buggy) solver can't
point us to dangerous memory locations anymore this way and VersionCount
remains useful for other mapping proposes
David Kalnischkies [Tue, 19 Apr 2011 09:52:47 +0000 (11:52 +0200)]
set hint flags for the problem resolver according to request
David Kalnischkies [Tue, 19 Apr 2011 09:51:47 +0000 (11:51 +0200)]
Interpret Remove and Install lines in Responses correctly
Julian Andres Klode [Mon, 18 Apr 2011 08:56:37 +0000 (10:56 +0200)]
apt-pkg/depcache.cc: Really release action groups only once (Closes: #622744)
David Kalnischkies [Sat, 16 Apr 2011 16:55:53 +0000 (18:55 +0200)]
* apt-pkg/deb/dpkgpm.cc:
- replace obsolete usleep with nanosleep
David Kalnischkies [Sat, 16 Apr 2011 16:11:47 +0000 (18:11 +0200)]
cppcheck: (style) Variable 'State' is assigned a value that is never used
David Kalnischkies [Sat, 16 Apr 2011 16:07:52 +0000 (18:07 +0200)]
* apt-pkg/orderlist.cc:
- let VisitRProvides report if the calls were successful
David Kalnischkies [Sat, 16 Apr 2011 14:56:39 +0000 (16:56 +0200)]
remove the extra unnecessary qualification cppcheck complains about
David Kalnischkies [Sat, 16 Apr 2011 14:50:37 +0000 (16:50 +0200)]
* apt-pkg/acquire-method.cc:
- write directly to stdout instead of creating the message in
memory first before writing to avoid hitting limits
Julian Andres Klode [Sat, 16 Apr 2011 12:36:18 +0000 (14:36 +0200)]
Release 0.8.14.1
Julian Andres Klode [Sat, 16 Apr 2011 09:02:47 +0000 (11:02 +0200)]
apt-pkg/acquire-item.cc: Only try to rename existing Release files (Closes: #622912)