David Kalnischkies [Tue, 4 May 2010 11:45:36 +0000 (13:45 +0200)]
make update-po
David Kalnischkies [Tue, 4 May 2010 11:34:34 +0000 (13:34 +0200)]
fix compiler warning: reaching end of non-void method
David Kalnischkies [Tue, 4 May 2010 11:26:49 +0000 (13:26 +0200)]
merge from the debian-sid branch
David Kalnischkies [Tue, 4 May 2010 10:54:52 +0000 (12:54 +0200)]
use GroupCount for package names in stats and add a package struct line
David Kalnischkies [Tue, 4 May 2010 10:43:08 +0000 (12:43 +0200)]
* apt-pkg/pkgcache.h:
- enhance the Groups ABI by providing a ID as the other structs does
- check also the size of the Group struct then checking for the others
David Kalnischkies [Tue, 4 May 2010 10:30:13 +0000 (12:30 +0200)]
* doc/cache.sgml:
- drop the file in favor of inplace documentation with doxygen
Michael Vogt [Tue, 4 May 2010 07:57:24 +0000 (09:57 +0200)]
merge from the mvo branch
David Kalnischkies [Mon, 3 May 2010 15:19:09 +0000 (17:19 +0200)]
* doc/files.sgml:
- sync documentation with status quo, regarding files/directories in
use, extended_states and uri schemes.
David Kalnischkies [Mon, 3 May 2010 14:55:11 +0000 (16:55 +0200)]
replace »« with '' in the internal error msg to have ascii chars for gettext
Michael Vogt [Mon, 3 May 2010 08:07:13 +0000 (10:07 +0200)]
* apt-pkg/indexfile.cc:
- If no "_" is found in the language code, try to find a "."
This is required for languages like Esperanto that have no
county associated with them (LP: #560956)
Thanks to "Aisano" for the fix
David Kalnischkies [Wed, 28 Apr 2010 14:25:05 +0000 (16:25 +0200)]
rewrite the pseudo package reinstaller to be more intelligent
in his package choices
The previous implementation tried to install the package for arch A and
if this fails B, C and so on. This results in wrong architecture choices
for packages which depend on other pseudo packages, so he will now try
to install the dependencies first before trying the package itself and
only if this fails he tries the next architecture.
Michael Vogt [Wed, 28 Apr 2010 13:49:55 +0000 (15:49 +0200)]
apt-pkg/policy.cc: yet another cout -> clog fix
Michael Vogt [Wed, 28 Apr 2010 13:45:06 +0000 (15:45 +0200)]
* apt-pkg/depcache.cc:
- fix incorrect std::cout usage for debug output
Michael Vogt [Wed, 28 Apr 2010 07:41:44 +0000 (09:41 +0200)]
* [ Abi break ] apt-pkg/acquire-item.{cc,h}:
- add "IsIndexFile" to constructor of pkgAcqFile so that it sends
the right cache control headers
David Kalnischkies [Sat, 24 Apr 2010 11:15:33 +0000 (13:15 +0200)]
set also "all" to this version for pseudo packages in TryToChangeVer
David Kalnischkies [Sat, 24 Apr 2010 10:44:11 +0000 (12:44 +0200)]
* apt-pkg/contrib/configuration.cc:
- error out if #clear directive has no argument
David Kalnischkies [Sat, 24 Apr 2010 10:15:59 +0000 (12:15 +0200)]
* apt-pkg/sourcelist.cc:
- be less strict and accept [option=value] as well
David Kalnischkies [Sat, 24 Apr 2010 09:02:30 +0000 (11:02 +0200)]
* doc/po/de.po:
- correct typos in german apt_preferences manpage, thanks Chris Leick!
David Kalnischkies [Sat, 24 Apr 2010 08:49:48 +0000 (10:49 +0200)]
show non-candidates as fallback for virtual packages (Closes: #578385)
David Kalnischkies [Sat, 24 Apr 2010 07:39:46 +0000 (09:39 +0200)]
* doc/apt.ent:
- Add a note about APT_CONFIG in the -c description (Closes: #578267)
David Kalnischkies [Fri, 23 Apr 2010 15:19:57 +0000 (17:19 +0200)]
* cmdline/apt-cache.cc:
- align Installed and Candidate Version in policy so they can be compared
easier, thanks Ralf Gesellensetter for the pointer! (Closes: #578657)
David Kalnischkies [Fri, 23 Apr 2010 15:13:02 +0000 (17:13 +0200)]
* ftparchive/writer.cc:
- remove 999 chars Files and Checksums rewrite limit (Closes: #577759)
David Kalnischkies [Wed, 21 Apr 2010 13:25:12 +0000 (15:25 +0200)]
replace backticks with POSIX $() (Closes: #577116)
And again thanks to Jari Aalto for spotting & patching!
David Kalnischkies [Wed, 21 Apr 2010 13:16:13 +0000 (15:16 +0200)]
* dselect/install:
- modernize if-statements not to use 'x' (Closes: #577117)
Thanks to Jari Aalto for spotting & patching!
David Kalnischkies [Wed, 21 Apr 2010 11:14:40 +0000 (13:14 +0200)]
replace backticks with single quote in broken packages message.
Thanks to Jari Aalto for spotting & patching! (Closes: #577168)
Michael Vogt [Wed, 14 Apr 2010 17:26:34 +0000 (19:26 +0200)]
Remember hosts with general failures for
https://wiki.ubuntu.com/NetworklessInstallationFixes (LP: #556831).
David Kalnischkies [Wed, 14 Apr 2010 16:01:11 +0000 (18:01 +0200)]
* apt-pkg/deb/dpkgpm.cc:
- remove Chroot-Directory from files passed to install commands.
Thanks to Kel Modderman for report & patch! (Closes: #577226)
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)
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
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.
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.
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 ... 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 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.
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: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
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).