Christopher Baines [Tue, 16 Aug 2011 17:00:01 +0000 (18:00 +0100)]
Fixed a problem where the loop flag would be removed prematurely.
SmartConfigure xserver-xorg-video-apm (1:1.2.3-0ubuntu1)
SmartConfigure xserver-xorg-core (2:1.9.0-0ubuntu7.3) <- Loop flag set on xserver-xorg-core
SmartConfigure xserver-xorg (1:7.5+6ubuntu3)
SmartConfigure xserver-xorg-core (2:1.9.0-0ubuntu7.3) (Only Correct Dependancies) <- Loop flag removed prematurely
SmartConfigure libpciaccess0 (0.12.0-1)
SmartConfigure libpixman-1-0 (0.18.4-1)
SmartConfigure xserver-xorg-video-all (1:7.5+6ubuntu3)
SmartConfigure xserver-xorg-video-apm (1:1.2.3-0ubuntu1) (Only Correct Dependancies)
SmartConfigure xserver-xorg-core (2:1.9.0-0ubuntu7.3) <- Incorrectly detects first run as no loop flag
Also applied this fix to the SmartUnpack method.
Christopher Baines [Mon, 15 Aug 2011 21:31:09 +0000 (22:31 +0100)]
Fixed a bug where SmartUnPack would be called with Immediate=true (to resolve dependancies in SmartConfigure) yet Pkg
would not be immediately configured. This was because SmartUnPack still required the immediate flag to be set on Pkg.
Also inproved the debuging adding indented output for SmartUnPack and SmartConfigure and specifying in the output if
SmartConfigure or SmartUnPack was called just to Correct something (PkgLoop = true) or not.
Christopher Baines [Sun, 14 Aug 2011 17:41:38 +0000 (18:41 +0100)]
Applied DonKult (David)'s excellent fix for inproving the loop management. Now both SmartConfigure and SmartUnPack can be
called mutiple times on the same package, this is to make sure that when loops are broken all packages that are required
are kept in the same dpkg run.
Christopher Baines [Sat, 13 Aug 2011 16:29:49 +0000 (17:29 +0100)]
Fix a bug introduced in Rev.2159 on line 398, also fix another potential bug.
Christopher Baines [Fri, 12 Aug 2011 15:36:25 +0000 (16:36 +0100)]
Added code to allow SmartConfigure to be called mutiple times on the same package to ensure all dependancies are satisfied.
Christopher Baines [Fri, 12 Aug 2011 11:22:17 +0000 (12:22 +0100)]
Inproved debug with versioning
Christopher Baines [Fri, 12 Aug 2011 09:38:19 +0000 (10:38 +0100)]
Small fix for loop handeling.
Christopher Baines [Thu, 11 Aug 2011 14:35:54 +0000 (15:35 +0100)]
Added a RmFlag function to remvoe the loop flag, this should prevent any errors or wierd behaviour because of the loop flag being used
at mutiple stages in both SmartUnpack and SmartConfigure.
Christopher Baines [Tue, 9 Aug 2011 16:10:09 +0000 (17:10 +0100)]
More inproved comments about loops.
Christopher Baines [Sun, 7 Aug 2011 19:26:31 +0000 (20:26 +0100)]
Improved errors and messages in general and improved the comments.
Removed quite a bit of code I used while learning about how apt handles things.
Added some extra checks and warnings relevent for Immediate Configuration.
Removed a wierd section I put in to prevent a segfault at 724+, this appears no longer to be needed.
Christopher Baines [Sun, 7 Aug 2011 15:35:36 +0000 (16:35 +0100)]
Fixed a bug on line 623, I picked this up after seeing SmartUnpack trying to remove packages once they were confiured to solve Conflicts with the previous version!
Luckily EarlyRemove is sane, and properly checks, so I think this was just cosmetic.
Also fixed a bug on line 374 with SmartUnpack not checking if a dependancy has been removed, this bug was definately harmful.
Christopher Baines [Tue, 2 Aug 2011 09:29:11 +0000 (10:29 +0100)]
Inproved the SIGINT stop in the dpkgpm, not perfect yet but it should work when using Immediate-Configure-All.
Christopher Baines [Mon, 1 Aug 2011 11:27:10 +0000 (12:27 +0100)]
Only stop on SigInt if the system state is right (still needs more testing).
More inprovements to the package manager to prevent packages from being configured
twice.
Christopher Baines [Sun, 31 Jul 2011 15:26:39 +0000 (16:26 +0100)]
Only allow interupts when using, Immediate-Configure-All.
TODO for dpkgpm:
Useful messages about the interupt, what was done to what packages and what was not done to what packages.
Only fail when the system is in a clean state, at the moment it will fail either a configure or install run.
Christopher Baines [Wed, 27 Jul 2011 14:20:35 +0000 (15:20 +0100)]
SmartConfigure and SmartUnPack have got smarter! The full descriptions of what they now do is in the apt-pkg/packagemanager.cc file.
The short version is that they will both put the system in a state where there operation can be achived, this involves calling
themselves and each other recursively. Because SmartConfigure can now configure a package and all its dependancies itself, there is
no current need for DepAdd (at least in packagemanager.cc), SmartConfigure also performs the function of the short lived VerifyConfigure
as it checks through all the dependancies before performing configuration.
Another change is to use the ConfigureAll method in OrderInstall to clean up any packages left unconfigured during ImmConfigureAll.
This is necessary to inprove the safety of ImmConfiguration and because of the new SIGINT functionality of dpkgpm.cc relies on no
packages being left unconfigured between pairs of dpkg calls. While writing this commit log, I have realised that the SIGINT stuff
is a prototype and not ready to be used yet as I have only tested it twice.
Christopher Baines [Sat, 16 Jul 2011 21:10:52 +0000 (22:10 +0100)]
Dont try to configure packages using SmartConfigure when not performing immediate configuration.
Christopher Baines [Thu, 14 Jul 2011 15:39:06 +0000 (16:39 +0100)]
Inproved errors and warnings, will now warn if package configuration fails, but only error if the package is not configured at the end.
Christopher Baines [Thu, 14 Jul 2011 12:26:19 +0000 (13:26 +0100)]
More changes to make imediate configuration work for all packages,
I have stolen the Loop flag from orderlist.cc as it didnt seem to use it anymore.
Christopher Baines [Wed, 13 Jul 2011 09:50:41 +0000 (10:50 +0100)]
Added test for conflicts loop
Christopher Baines [Wed, 13 Jul 2011 08:12:19 +0000 (09:12 +0100)]
More changes to the SmartUnpack method to allow imediate configuration of all packages.
Christopher Baines [Wed, 6 Jul 2011 21:13:59 +0000 (22:13 +0100)]
Added a APT::Immediate-Configure-All option to enable imediate configuration for all packages.
Began adding to the SmartUnpack method to prevent dependancy loops breaking apt.
Christopher Baines [Tue, 5 Jul 2011 15:20:09 +0000 (16:20 +0100)]
Flag the package in the SmartUnPack method as UnPacked while solving breakages to prevent loops.
Christopher Baines [Tue, 5 Jul 2011 13:14:24 +0000 (14:14 +0100)]
Fix for reinstallation of packages
Christopher Baines [Tue, 5 Jul 2011 12:28:22 +0000 (13:28 +0100)]
[ David Kalnischkies ]
* doc/makefile:
- create doxygen directory to avoid depending on magic (Closes: #628799)
* cmdline/apt-key:
- explicitly state that net-update is not supported if no url is set
- require to be root for add, rm, update and net-update
- clarify update vs. net-update in different distros (Closes: #632043)
* debian/apt.symbols:
- forgot 'mips' in the list for all architecture dependent symbols
- comment out gcc-4.5 specific symbols as gcc-4.6 is now default
- the symbol for PrintStatus() is architecture dependent
* apt-pkg/policy.cc:
- do not segfault in pinning if a package with this name doesn't exist.
Thanks to Ferdinand Thommes for the report!
- Defaults is a vector of Pin not of PkgPin
- ensure that only the first specific stanza for a package is used
- save all stanzas which had no effect in Unmatched
- allow package:architecure in Package:
- remove invalid pkgcache.bin and rebuild it if possible
- log reinstall commands in history.log
* apt-pkg/init.cc:
- don't set deprecated APT::Acquire::Translation, thanks Jörg Sommer!
* cmdline/apt-config.cc:
- show Acquire::Languages and APT::Architectures settings
in 'dump' (Closes: 626739)
* apt-pkg/orderlist.cc:
- ensure that an old version of a package with a provides can
never satisfy a dependency of a newer version of this package
[ Michael Vogt ]
* methods/mirror.cc:
- ignore lines starting with "#" in the mirror file
- ignore non http urls in the mirrors
- append the dist (e.g. sid, wheezy) as a query string when
asking for a suitable mirror
* apt-pkg/deb/deblistparser.cc:
- include all known languages when building the apt cache
(LP: #794907)
* apt-pkg/deb/debindexfile.cc:
- remove some no longer valid checks for "TranslationsAvailable()"
[ Kenneth Solbø Andersen ]
* apt-pkg/deb/dpkgpm.cc:
- set permissions of term.log to root.adm and 644 (LP: #404724)
[ Chris Leick ]
* various typo and syntax corrections in doc/*.xml
[Chris Baines]
* Began to fix DepAdd for imediate configuration of all packages
Christopher Baines [Tue, 5 Jul 2011 12:11:19 +0000 (13:11 +0100)]
Commit some stuff so that I can merge
Christopher Baines [Tue, 5 Jul 2011 12:04:30 +0000 (13:04 +0100)]
Changed check in the SmartUnpack method, reverted change in the DepAdd method.
Christopher Baines [Tue, 5 Jul 2011 10:30:35 +0000 (11:30 +0100)]
Removed some debug stuff, corrected the VerifyConfigure calls to VerifyAndConfigure
Christopher Baines [Mon, 4 Jul 2011 11:12:13 +0000 (12:12 +0100)]
Added temp debug statement.
Christopher Baines [Sun, 3 Jul 2011 19:45:07 +0000 (20:45 +0100)]
Added debug output to package manager.
Christopher Baines [Sat, 2 Jul 2011 14:33:25 +0000 (15:33 +0100)]
The modification to orderlist.cc is from a patch DonKult (David) gave me, The modifications to the packagemanager should fix the test-provides-gone-with-upgrade testcase.
Michael Vogt [Thu, 30 Jun 2011 08:14:38 +0000 (10:14 +0200)]
releasing version 0.8.15.1
Michael Vogt [Thu, 30 Jun 2011 07:33:19 +0000 (08:33 +0100)]
* doc/makefile:
- create doxygen directory to avoid depending on magic (Closes: #628799)
* cmdline/apt-key:
- explicitly state that net-update is not supported if no url is set
- require to be root for add, rm, update and net-update
- clarify update vs. net-update in different distros (Closes: #632043)
* debian/apt.symbols:
- forgot 'mips' in the list for all architecture dependent symbols
- comment out gcc-4.5 specific symbols as gcc-4.6 is now default
- the symbol for PrintStatus() is architecture dependent
* apt-pkg/policy.cc:
- do not segfault in pinning if a package with this name doesn't exist.
Thanks to Ferdinand Thommes for the report!
- Defaults is a vector of Pin not of PkgPin
- ensure that only the first specific stanza for a package is used
- save all stanzas which had no effect in Unmatched
- allow package:architecure in Package:
Michael Vogt [Tue, 28 Jun 2011 16:49:01 +0000 (18:49 +0200)]
releasing version 0.8.15
Michael Vogt [Tue, 28 Jun 2011 16:00:07 +0000 (17:00 +0100)]
various typo and syntax corrections in doc/*.xml
Michael Vogt [Tue, 28 Jun 2011 15:27:48 +0000 (16:27 +0100)]
update symbol file (thanks to david)
Michael Vogt [Tue, 28 Jun 2011 14:51:33 +0000 (15:51 +0100)]
merged from lp:~mvo/apt/mvo
Michael Vogt [Tue, 28 Jun 2011 14:49:45 +0000 (15:49 +0100)]
merged from donkult
Michael Vogt [Tue, 28 Jun 2011 14:46:28 +0000 (15:46 +0100)]
change to 0.8.14.2
Michael Vogt [Tue, 28 Jun 2011 14:45:59 +0000 (15:45 +0100)]
cherry pick from donkult
Christopher Baines [Mon, 27 Jun 2011 13:56:07 +0000 (14:56 +0100)]
Removed temp debug lines.
Christopher Baines [Mon, 27 Jun 2011 13:52:41 +0000 (14:52 +0100)]
Fixed missing argument in VerifyConfigure call.
Christopher Baines [Mon, 27 Jun 2011 13:34:00 +0000 (14:34 +0100)]
Initial commit from my GSoC project. Added a verification function (VerifyConfigure) to the configuration methods.
Michael Vogt [Mon, 27 Jun 2011 08:46:41 +0000 (10:46 +0200)]
* apt-pkg/deb/dpkgpm.cc:
- set permissions of term.log to root.adm and 644 (LP: #404724)
bubulle@debian.org [Sat, 18 Jun 2011 11:56:21 +0000 (13:56 +0200)]
Catalan translation update (Jordi Mallach). Closes: #630657
bubulle@debian.org [Thu, 9 Jun 2011 20:48:35 +0000 (22:48 +0200)]
German documentation translation update (Chris Leick). Closes: #629949
Michael Vogt [Thu, 9 Jun 2011 12:02:03 +0000 (14:02 +0200)]
update changelog for the previous two commits
Michael Vogt [Thu, 9 Jun 2011 11:30:08 +0000 (13:30 +0200)]
apt-pkg/deb/debindexfile.cc: kill off another TranslationsAvailable() usage that is not needed
Michael Vogt [Thu, 9 Jun 2011 11:24:36 +0000 (13:24 +0200)]
apt-pkg/deb/debindexfile.cc: remove tests for TranslationsAvailable() as this will break adding translations to the cache if the current environment does not include the language (e.g. LANG=C but german translations). testing for existance of the file is the better approach
Michael Vogt [Thu, 9 Jun 2011 09:51:45 +0000 (11:51 +0200)]
* apt-pkg/deb/deblistparser.cc:
- include all known languages when building the apt cache
(LP: #794907)
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
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 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 [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 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