David Kalnischkies [Tue, 13 Apr 2010 08:18:19 +0000 (10:18 +0200)]
create the partial dirs also automatic if only Dir::Cache::archives or
Dir::Cache::lists was set
David Kalnischkies [Tue, 13 Apr 2010 07:28:57 +0000 (09:28 +0200)]
regex for package names executed on Grp- not PkgIterator
David Kalnischkies [Fri, 9 Apr 2010 13:38:48 +0000 (15:38 +0200)]
* apt-pkg/acquire-item.cc:
- Acquire::ForceHash to force method for expected hash
- display MD5Sum in --print-uris if not forced to use another method
instead of displaying the strongest available (Closes: #576420)
Michael Vogt [Thu, 8 Apr 2010 19:14:03 +0000 (21:14 +0200)]
* cmdline/apt-get.cc:
- fix crash when pkg.VersionList() is empty (LP: #556056)
Michael Vogt [Thu, 8 Apr 2010 18:57:01 +0000 (20:57 +0200)]
* cmdline/apt-get.cc:
- fix crash when pkg.VersionList() is empty
David Kalnischkies [Wed, 7 Apr 2010 14:38:18 +0000 (16:38 +0200)]
* apt-pkg/contrib/fileutl.cc:
- add a parent-guarded "mkdir -p" as CreateDirectory()
* apt-pkg/acquire.{cc,h}:
- add a delayed constructor with Setup() for success reporting
- check for and create directories in Setup if needed instead of
error out unfriendly in the Constructor (Closes: #523920, #525783)
- optional handle a lock file in Setup()
* cmdline/apt-get.cc:
- remove the lock file handling and let Acquire take care of it instead
David Kalnischkies [Sun, 4 Apr 2010 08:34:45 +0000 (10:34 +0200)]
remove the ABI compatible stub for GetListOfFilesInDir
David Kalnischkies [Sat, 3 Apr 2010 16:50:07 +0000 (18:50 +0200)]
* apt-pkg/packagemanager.cc:
- don't try to "unpack" pseudo packages twice
David Kalnischkies [Sat, 3 Apr 2010 15:57:41 +0000 (17:57 +0200)]
Initialize history_out always with NULL so apt will not segfault later
in the event of a failure in OpenLog() (which will happen if called with
Debug::NoLocking as user)
David Kalnischkies [Sat, 3 Apr 2010 15:07:30 +0000 (17:07 +0200)]
* apt-pkg/depcache.cc:
- "reinstall" the correct version for a killed pseudo package
Michael Vogt [Thu, 1 Apr 2010 20:50:10 +0000 (22:50 +0200)]
make changelog match upload
Michael Vogt [Thu, 1 Apr 2010 16:17:23 +0000 (18:17 +0200)]
releasing version 0.7.26~exp3
Michael Vogt [Thu, 1 Apr 2010 15:26:32 +0000 (17:26 +0200)]
prepare for upload
Michael Vogt [Thu, 1 Apr 2010 15:18:31 +0000 (17:18 +0200)]
merged from lp:~donkult/apt/sid
Michael Vogt [Wed, 31 Mar 2010 20:52:36 +0000 (22:52 +0200)]
releasing version 0.7.25.3ubuntu5
Michael Vogt [Wed, 31 Mar 2010 20:03:34 +0000 (22:03 +0200)]
cherry pick -r 1984..1985 lp:~donkult/apt/sid
Michael Vogt [Wed, 31 Mar 2010 20:00:36 +0000 (22:00 +0200)]
cherry pick -r 1983..1984 lp:~donkult/apt/sid
David Kalnischkies [Wed, 31 Mar 2010 15:19:10 +0000 (17:19 +0200)]
Userinfo is urlencoded in URIs (RFC 3986)
Thanks to Jean-Baptiste Lallement for spotting and fixing it!
* apt-pkg/contrib/strutl.cc:
- always escape '%' (LP: #130289) (Closes: #500560)
- unescape '%' sequence only if followed by 2 hex digit
- username/password are urlencoded in proxy string (RFC 3986)
David Kalnischkies [Tue, 30 Mar 2010 15:47:19 +0000 (17:47 +0200)]
try version match in FindSrc first exact than fuzzy (LP: #551178)
David Kalnischkies [Tue, 30 Mar 2010 12:45:38 +0000 (14:45 +0200)]
convert some tabs to spaces to respect the style guide
David Kalnischkies [Tue, 30 Mar 2010 12:25:57 +0000 (14:25 +0200)]
rename ExplodeString to VectorizeString
David Kalnischkies [Tue, 30 Mar 2010 10:39:33 +0000 (12:39 +0200)]
Group packages in the same group together in the package list
so it is easier to find them later on as we have no "noice"
anymore between them.
David Kalnischkies [Tue, 30 Mar 2010 10:38:38 +0000 (12:38 +0200)]
replace every call to toupper with one to our own tolower_ascii
This sounds like a premature optimization and since Mr. Knuth we all
know that they are the root of all evil - but, and here it starts to be
interesting: As the tolower_ascii method is by far the most called
method we have (~60 Mio. times) and as we compare only strings containing
ascii characters (package names, configuration options) using our own
method reduces execution time of APT by 4% plus it avoids that the
locale settings can influence us.
David Kalnischkies [Fri, 26 Mar 2010 23:01:34 +0000 (00:01 +0100)]
remove wrong pin-priority is optional remark (Closes: #574944)
David Kalnischkies [Fri, 26 Mar 2010 22:51:14 +0000 (23:51 +0100)]
origin can be used to match a hostname (Closes: #352667)
David Kalnischkies [Fri, 26 Mar 2010 22:24:13 +0000 (23:24 +0100)]
* doc/po/de.po:
- correct a few typos in the german manpage translation.
Thanks to Chris Leick and Georg Koppen! (Closes: #574962)
David Kalnischkies [Fri, 26 Mar 2010 21:48:09 +0000 (22:48 +0100)]
* doc/apt_preferences.5.xml:
- fix a=sid vs. n=sid typo, thanks Ansgar Burchardt!
David Kalnischkies [Fri, 26 Mar 2010 21:38:50 +0000 (22:38 +0100)]
Switch the TranslationWriter to use MultiCompress to be able to generate
the compressed files as we want them and to prevent the file to be
replaced without a reason which could save us from steady redownloads
of a file with the same content.
David Kalnischkies [Fri, 26 Mar 2010 18:18:21 +0000 (19:18 +0100)]
Inclusion of Long Descriptions in the Packages files can be set now
also in TreeDefaults and Tree to support generation of archives which
should support and which shouldn't support splitted out Translation-en
files in the same run.
Michael Vogt [Fri, 26 Mar 2010 17:09:28 +0000 (18:09 +0100)]
releasing version 0.7.25.3ubuntu4
Michael Vogt [Fri, 26 Mar 2010 16:27:47 +0000 (17:27 +0100)]
cherry pick -r 1954..1955 lp:~donkult/apt/sid
Michael Vogt [Fri, 26 Mar 2010 16:25:04 +0000 (17:25 +0100)]
* cmdline/apt-get.cc, apt-pkg/cdrom.cc:
- fix memory leaks in error conditions in DoSource()
Michael Vogt [Fri, 26 Mar 2010 16:02:27 +0000 (17:02 +0100)]
cherry pick -r 1956..1957 lp:~donkult/apt/sid
Julian Andres Klode [Fri, 26 Mar 2010 15:37:16 +0000 (16:37 +0100)]
ftparchive/apt-ftparchive.cc: Include apt-pkg/init.h.
Michael Vogt [Fri, 26 Mar 2010 15:04:49 +0000 (16:04 +0100)]
* apt-pkg/deb/dpkgpm.cc:
- fix backgrounding when dpkg runs (closes: #486222)
* cmdline/apt-mark:
- show error on incorrect aguments (LP: #517917), thanks to
Torsten Spindler
* cmdline/apt-get.cc:
- if apt-get source foo=version or foo/distro can not be found,
error out (LP: #502641)
* apt-pkg/packagemanager.cc:
- better debug output
* doc/examples/configure-index:
- add missing Debug::pkgPackageManager option
Julian Andres Klode [Fri, 26 Mar 2010 14:35:36 +0000 (15:35 +0100)]
* ftparchive/apt-ftparchive.cc:
- Read default configuration (Closes: #383257)
bubulle@debian.org [Tue, 23 Mar 2010 12:07:31 +0000 (13:07 +0100)]
French translation completed
David Kalnischkies [Mon, 22 Mar 2010 17:25:37 +0000 (18:25 +0100)]
* ftparchive/writer.cc:
- write LongDescriptions if they shouldn't be included in Packages
file into i18n/Translation-en by default.
It is ensured that each package+description is listed only ones in the
Translation file even if we generate multiple Packages file in one run.
The file is only generated in "generate" - the simple file commands
can't create it by now. Also, the LongDescription is currently a
global setting, so generating archives with and without LongDescriptions
in the Packages file in the same run are currently not possible.
David Kalnischkies [Sun, 21 Mar 2010 20:48:09 +0000 (21:48 +0100)]
Add with pkgCacheGen::Essential a way to control which packages get the
essential flag:
* native is the default and will only mark packages of the main arch
* all will mark all packages which have these flag in Packages
* none will obviously do the opposite
* installed will only mark packages which are installed as essential,
so it will behave in the same way as dpkg does it.
It is mostly needed sometimes for debugging but some users with special
needs might like to switch the mode as well under the expense to be
on their own…
Julian Andres Klode [Sun, 21 Mar 2010 17:11:46 +0000 (18:11 +0100)]
cmdline/apt-cache.cc: Change behavior of showsrc to match the one of show (Closes: #512046).
Julian Andres Klode [Sun, 21 Mar 2010 16:58:58 +0000 (17:58 +0100)]
* cmdline/apt-key:
- Honor Apt::GPGV::TrustedKeyring (Closes: #316390)
Julian Andres Klode [Sun, 21 Mar 2010 16:38:43 +0000 (17:38 +0100)]
* apt-pkg/policy.cc:
- Always return a candidate if there is at least one version pinned > 0
(Closes: #512318)
David Kalnischkies [Fri, 19 Mar 2010 15:41:35 +0000 (16:41 +0100)]
add a missing \n to pl translation i had removed previously by accident
David Kalnischkies [Fri, 19 Mar 2010 15:29:40 +0000 (16:29 +0100)]
first-time build the translated manpages and remove the directories
in the veryclean target to get right of all autogenerated files.
David Kalnischkies [Fri, 19 Mar 2010 12:06:48 +0000 (13:06 +0100)]
add a missing non-const & Accessors to the Iterator class
David Kalnischkies [Fri, 19 Mar 2010 11:36:20 +0000 (12:36 +0100)]
modify and clarify the comments for the translation placeholders a bit
and as it was only a comment change unfuzzy the translations.
David Kalnischkies [Fri, 19 Mar 2010 10:00:36 +0000 (11:00 +0100)]
merge with debian-sid to get new pl-manpage
David Kalnischkies [Fri, 19 Mar 2010 09:54:26 +0000 (10:54 +0100)]
add translation of the manpages to PT (portuguese)
Thanks to Américo Monteiro!
bubulle@debian.org [Fri, 19 Mar 2010 03:19:15 +0000 (10:19 +0700)]
Add conflict with manpages-pl
bubulle@debian.org [Fri, 19 Mar 2010 03:14:11 +0000 (10:14 +0700)]
Polish manpages translation update
David Kalnischkies [Thu, 18 Mar 2010 22:54:12 +0000 (23:54 +0100)]
merge MultiArch-ABI. We don't support MultiArch yet (as most other tools),
but we support the usage of the new ABI so libapt users
can start to prepare for MultiArch (Closes: #536029)
David Kalnischkies [Thu, 18 Mar 2010 17:51:14 +0000 (18:51 +0100)]
Readd the FindPkg() method implementation used in the singleArch days to
use it as a fallback if multiarch is not enabled. The effect is barly
noticeable but SingleArch is the realworld scenario.
David Kalnischkies [Thu, 18 Mar 2010 17:07:51 +0000 (18:07 +0100)]
generate "negative" dependencies against all architectures of a package
Negative means here Conflicts, Replaces and Breaks - this adds again
a whole lot of dependencies.
David Kalnischkies [Thu, 18 Mar 2010 12:27:55 +0000 (13:27 +0100)]
Fix a segfault in the version merger introduced in the previous patch:
As we skip now versions with a different hash we will have situations
in which the version is equal but the hash different causing to check
the next version, but as this version was the last one the version
iterator is invalid then the merger wants to add further information.
David Kalnischkies [Wed, 17 Mar 2010 16:05:57 +0000 (17:05 +0100)]
The language directories for manpage building are now
autogenerated so we should ignore them.
David Kalnischkies [Wed, 17 Mar 2010 13:47:05 +0000 (14:47 +0100)]
* apt-pkg/pkgcachegen.cc:
- merge versions correctly even if multiple different versions
with the same version number are available.
Thanks to Magnus Holmgren for the patch! (Closes: #351056)
Michael Vogt [Tue, 16 Mar 2010 20:47:49 +0000 (21:47 +0100)]
apt-pkg/packagemanager.cc: more debug output for debug::pkgPackageManager
bubulle@debian.org [Tue, 16 Mar 2010 04:35:38 +0000 (11:35 +0700)]
Dutch translation update
David Kalnischkies [Mon, 15 Mar 2010 10:02:31 +0000 (11:02 +0100)]
* doc/makefile, doc/*:
- generate subdirectories for building the manpages in on the fly
depending on the po files we have.
Michael Vogt [Mon, 15 Mar 2010 08:57:57 +0000 (09:57 +0100)]
releasing version 0.7.25.3ubuntu3
David Kalnischkies [Sun, 14 Mar 2010 20:48:14 +0000 (21:48 +0100)]
* apt-pkg/depcache.cc:
- remove Auto-Installed information from extended_states
together with the package itself (Closes: #572364)
David Kalnischkies [Sun, 14 Mar 2010 16:26:50 +0000 (17:26 +0100)]
* debian/control:
- add automake/conf build-depends/conflicts as recommend by
the autotools-dev README (Closes: #572615)
David Kalnischkies [Sun, 14 Mar 2010 15:47:48 +0000 (16:47 +0100)]
merge with debian-sid, update-po for manpages and fix a few more
typos in doc/po/es.po to generate the manpages properly.
[ Christian Perrier ]
* German translation update. Closes: #571037
* Spanish manpages translation update. Closes: #573293
[ Julian Andres Klode ]
* cmdline/apt-mark:
- Use the new python-apt API (and conflict with python-apt << 0.7.93.2).
* apt-inst/contrib/arfile.h:
- Add public ARArchive::Members() which returns the list of members.
* debian/rules:
- Fix the libraries name to be e.g. libapt-pkg4.9 instead of
libapt-pkg-4.9.
David Kalnischkies [Sun, 14 Mar 2010 13:45:00 +0000 (14:45 +0100)]
Ensure that for each all package at least one pseudopackage is installed
Removing pseudo packages is cool so far, the problem is that we will
remove with the not required removing so many pseudo packages that
we will have after the remove a few packages with NO installed pseudo
package (e.g. metapackages are good candidates) - so we will walk over
all these packages and try to find a pseudopackage for this package
we can install without breaking something.
David Kalnischkies [Sat, 13 Mar 2010 13:11:22 +0000 (14:11 +0100)]
* apt-pkg/deb/debversion.cc:
- consider absent of debian revision equivalent to 0 (Closes: #573592)
This moves the existing testcase for version comparison to "my" directory,
adds a few more tests (e.g. the tests used in cupt) and rewrites the
testcases runner: The runner does now call dpkg --compare-versions
to check what dpkg thinks about the comparison - all done in less code ;)
Michael Vogt [Fri, 12 Mar 2010 22:24:05 +0000 (23:24 +0100)]
releasing version 0.7.25.3ubuntu2
Michael Vogt [Fri, 12 Mar 2010 21:33:35 +0000 (22:33 +0100)]
* debian/apt.cron.daily:
- do not look into admin users gconf anymore for the http proxy
the user now needs to use the "Apply system-wide" UI in the
gnome-control-center to set it
* debian/apt.postinst:
- add set_apt_proxy_from_gconf() and run that once on upgrade if
there is no proxy configured already system-wide (LP: #432631)
From that point on gnome-control-center will have to warn if
the user makes changes to the proxy settings and does not apply
them system wide
Michael Vogt [Fri, 12 Mar 2010 21:10:42 +0000 (22:10 +0100)]
* cmdline/apt-get.cc:
- if apt-get source foo=version or foo/distro can not be found,
error out (LP: #502641)
* apt-pkg/indexfile.cc:
- deal correctly with three letter langcodes (LP: #391409)
Michael Vogt [Fri, 12 Mar 2010 21:06:08 +0000 (22:06 +0100)]
* apt-pkg/indexfile.cc:
- deal correctly with three letter langcodes (LP: #391409)
David Kalnischkies [Fri, 12 Mar 2010 18:41:30 +0000 (19:41 +0100)]
* apt-pkg/deb/dpkgpm.cc:
- if available store the Commandline in the history
* apt-pkg/contrib/cmndline.cc:
- save Commandline in Commandline::AsString for logging
Julian Andres Klode [Fri, 12 Mar 2010 17:28:57 +0000 (18:28 +0100)]
doc/po/es.po: Add a missing placeholder xml, fixes build.
Michael Vogt [Fri, 12 Mar 2010 14:39:06 +0000 (15:39 +0100)]
* cmdline/apt-get.cc:
- if apt-get source foo=version or foo/distro can not be found,
error out (LP: #502641)
Julian Andres Klode [Fri, 12 Mar 2010 14:29:07 +0000 (15:29 +0100)]
* debian/rules:
- Fix the libraries name to be e.g. libapt-pkg4.9 instead of
libapt-pkg-4.9.
Julian Andres Klode [Fri, 12 Mar 2010 14:28:24 +0000 (15:28 +0100)]
apt-inst/contrib/arfile.h: Add public ARArchive::Members() which returns the list of members.
Michael Vogt [Fri, 12 Mar 2010 10:20:18 +0000 (11:20 +0100)]
debian/changelog: move changelog entry to the right version
David Kalnischkies [Fri, 12 Mar 2010 10:08:13 +0000 (11:08 +0100)]
* cmdline/apt-get.cc
- fix memory leaks in error conditions in DoSource()
David Kalnischkies [Fri, 12 Mar 2010 09:59:37 +0000 (10:59 +0100)]
* cmdline/apt-get.cc:
- add a --only-upgrade flag to install command (Closes: #572259)
That is NOT what is requested in e.g. #74067 - this is a very simple
flag which behaves orthogonal to --no-upgrade not a full-blown
upgrade option for a single package instead of the whole package set.
David Kalnischkies [Fri, 12 Mar 2010 09:56:25 +0000 (10:56 +0100)]
* apt-pkg/deb/dpkgpm.cc:
- fix error message construction in OpenLog()
Michael Vogt [Fri, 12 Mar 2010 09:16:11 +0000 (10:16 +0100)]
* apt-pkg/deb/dpkgpm.cc:
- fix backgrounding when dpkg runs (closes: #486222)
* cmdline/apt-mark:
- show error on incorrect aguments (LP: #517917), thanks to
Torsten Spindler
Michael Vogt [Fri, 12 Mar 2010 09:13:44 +0000 (10:13 +0100)]
* cmdline/apt-mark:
- show error on incorrect aguments (LP: #517917), thanks to
Torsten Spindler
bubulle@debian.org [Wed, 10 Mar 2010 21:39:44 +0000 (22:39 +0100)]
Spanish manpages translation update
Michael Vogt [Mon, 8 Mar 2010 16:55:39 +0000 (17:55 +0100)]
add "oldlibs" to the APT::Never-MarkAuto-Sections as its used
for transitional packages
Michael Vogt [Mon, 8 Mar 2010 16:48:33 +0000 (17:48 +0100)]
* debian/apt.conf.autoremove:
- add "transitional" to the APT::Never-MarkAuto-Sections
Michael Vogt [Mon, 8 Mar 2010 16:46:43 +0000 (17:46 +0100)]
merged from the mvo branch
David Kalnischkies [Wed, 3 Mar 2010 20:29:01 +0000 (21:29 +0100)]
fix memory leak in getLanguages() by closing the directory after checking
David Kalnischkies [Tue, 2 Mar 2010 17:57:27 +0000 (18:57 +0100)]
ignore the autogenerated files and directories in abicheck/
David Kalnischkies [Tue, 2 Mar 2010 17:55:18 +0000 (18:55 +0100)]
* doc/apt_preferences.5.xml:
- fix two typos and be more verbose in the novice warning.
Thanks to Osamu Aoki for pointing it out! (Closes: #567669)
David Kalnischkies [Mon, 1 Mar 2010 21:47:17 +0000 (22:47 +0100)]
fix compiler error if compiled with -std=c++0x
David Kalnischkies [Mon, 1 Mar 2010 20:59:03 +0000 (21:59 +0100)]
We need to kill also pseudo packages which have no dependency, no
installed reverse dependency and which also doesn't provide something.
They cause problems if this pseudo packages get new dependencies.
As a consequence we also need to recheck the dependencies of a killed
pseudo package (and especially the providers of these dependencies)
to really kill all non required packages.
David Kalnischkies [Mon, 1 Mar 2010 14:27:55 +0000 (15:27 +0100)]
Remove and Unpack operations should not be ignored for pseudo packages -
they should trigger the remove/unpack of the "all" package.
Otherwise - as this package has no dependencies - it will be triggered
to late. The Configuration step doesn't need it as the "all" package is
a dependency of the pseudo-package, so it will be configured before
the pseudo packages are tried: So at this step the ignorance is okay.
Also IsMissing() should report the status of the all package if an
pseudo package is checked instead of always reporting no-miss.
Julian Andres Klode [Mon, 1 Mar 2010 12:47:56 +0000 (13:47 +0100)]
* cmdline/apt-mark:
- Use the new python-apt API (and conflict with python-apt << 0.7.93.2).
David Kalnischkies [Sun, 28 Feb 2010 21:45:34 +0000 (22:45 +0100)]
Create Pins for all group members instead of only for native architecture
David Kalnischkies [Sun, 28 Feb 2010 18:45:05 +0000 (19:45 +0100)]
Fix the PkgFileIterator Constructor which defaults to the wrong value.
(0 instead of the HeaderP) This breaks the Cache Validation functionality
as the end() doesn't test for NULL.
(The fault was introduced with the rewriting of the CacheIterators)
bubulle@debian.org [Sun, 28 Feb 2010 10:18:34 +0000 (11:18 +0100)]
Completed translation
David Kalnischkies [Sat, 27 Feb 2010 16:01:12 +0000 (17:01 +0100)]
Enable the AutoRemover to talk "Multi-Arch" by marking all pseudo
packages in a group if one is marked.
The auto-installed flag is from now on Architecture bound:
A section without an architecture tag will be treated as applying
to all architectures - the next write operation will take care of
this by creating separate sections for the architectures.
bubulle@debian.org [Sat, 27 Feb 2010 06:25:20 +0000 (07:25 +0100)]
Correct translation error
bubulle@debian.org [Sat, 27 Feb 2010 06:23:30 +0000 (07:23 +0100)]
Correct translation error
David Kalnischkies [Sat, 27 Feb 2010 01:02:25 +0000 (02:02 +0100)]
* apt-pkg/contrib/mmap.{h,cc}:
- add char[] fallback for filesystems without shared writable
mmap() like JFFS2. Thanks to Marius Vollmer for writing
and to Loïc Minier for pointing to the patch! (Closes: #314334)
David Kalnischkies [Fri, 26 Feb 2010 19:47:19 +0000 (20:47 +0100)]
move ShowPkg() from apt-get to the PkgIterator and rename it to FullName()
responseable for displaying a package name and the architecture in a
uniform way. Pretty option can be used to not append the architecture if
it is the native architecture or all - and use it all over the place in
the commandline tools.
David Kalnischkies [Fri, 26 Feb 2010 19:19:06 +0000 (20:19 +0100)]
* debian/control:
- remove some years old and obsolete Replaces