]> git.saurik.com Git - apt.git/log
apt.git
10 years agotest/integration/test-ubuntu-bug-346386-apt-get-update-paywall: use downloadfile()
Michael Vogt [Wed, 3 Sep 2014 14:54:16 +0000 (16:54 +0200)] 
test/integration/test-ubuntu-bug-346386-apt-get-update-paywall: use downloadfile()

10 years agoRun autopkgtest tests with "env -i" to avoid pollution from the host env
Michael Vogt [Tue, 2 Sep 2014 15:30:45 +0000 (17:30 +0200)] 
Run autopkgtest tests with "env -i" to avoid pollution from the host env

Closes: #759655
10 years agoMake Packages & Sources generation optional, during Generate call
Dimitri John Ledkov [Fri, 18 Jul 2014 15:06:34 +0000 (16:06 +0100)] 
Make Packages & Sources generation optional, during Generate call

refactor a bit, extract code out of Generate() into
DoGenerate{PackagesAndSources,Contents}, add new
APT::FTPArchive::ContentsOnly option to allow skipping the generation
of Package/Source files (if they are generated e.g. by some db outside
of apt-ftparchives control)

10 years agoUse heap to allocate PatternMatch to avoid potential stack overflow
Michael Vogt [Tue, 2 Sep 2014 15:06:52 +0000 (17:06 +0200)] 
Use heap to allocate PatternMatch to avoid potential stack overflow

When apt-cache search with many args (> 130) is given the allocation
of PatternMatch on the stack may fail resulting in a segmentation
fault. By using the heap the max size is much bigger and we also
get a bad_alloc expection instead of a segfault (which we can catch
*if* this ever becomes a pratical problem). No test for the crash
as its not reproducable with the MALLOC_ settings in framework.

Closes: 759612
10 years ago* apt-pkg/deb/dpkgpm.cc:
Michael Vogt [Tue, 2 Sep 2014 15:24:24 +0000 (17:24 +0200)] 
* apt-pkg/deb/dpkgpm.cc:
    - update string matching for dpkg I/O errors. (LP: #1363257)
    - properly parse the dpkg status line so that package name is properly set
      and an apport report is created. Thanks to Anders Kaseorg for the patch.
      (LP: #1353171)

10 years agoAdd testcase for apt list --all-versions
Michael Vogt [Tue, 2 Sep 2014 14:36:32 +0000 (16:36 +0200)] 
Add testcase for apt list --all-versions

Dch-Ignore: true

10 years agoAvoid yielding blank lines with APT::Cmd::use-format=true
Andreas Oberritter [Tue, 2 Sep 2014 14:34:05 +0000 (16:34 +0200)] 
Avoid yielding blank lines with APT::Cmd::use-format=true

10 years agoMake Proxy-Auto-Detect check for each host
Michael Vogt [Tue, 2 Sep 2014 13:50:19 +0000 (15:50 +0200)] 
Make Proxy-Auto-Detect check for each host

When doing Acquire::http{,s}::Proxy-Auto-Detect, run the auto-detect
command for each host instead of only once. This should make using
"proxy" from libproxy-tools feasible which can then be used for PAC
style or other proxy configurations.

Closes: #759264
10 years agoinitialize iPolicyBrokenCount in DepCache::Update
Warren He [Fri, 29 Aug 2014 09:15:30 +0000 (11:15 +0200)] 
initialize iPolicyBrokenCount in DepCache::Update

All other counters are correctly initialized here, expect this one. The
practical effect is low as in apt we usually just do "!= 0" checks, but
only correct counters are good counters.

Closes: 758397
10 years agoPortuguese manpages translation update
Américo Monteiro [Fri, 29 Aug 2014 09:07:23 +0000 (11:07 +0200)] 
Portuguese manpages translation update

Closes: 759608
10 years agoThe following command otherwise yields many blank lines:
Andreas Oberritter [Thu, 28 Aug 2014 22:04:20 +0000 (15:04 -0700)] 
The following command otherwise yields many blank lines:
apt list -o APT::Cmd::use-format=true -o APT::Cmd::format=\${Package}

And even worse when adding "-o APT::Cmd::All-Versions=true".

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
10 years agoGerman program translation update
Holger Wansing [Thu, 28 Aug 2014 16:16:02 +0000 (18:16 +0200)] 
German program translation update

Closes: 758837
10 years agoreleasing 1.0.7 1.0.7
Michael Vogt [Thu, 28 Aug 2014 00:24:03 +0000 (00:24 +0000)] 
releasing 1.0.7

10 years agoprepare 1.0.7
Michael Vogt [Thu, 28 Aug 2014 00:14:51 +0000 (17:14 -0700)] 
prepare 1.0.7

10 years agosupport versioned provides as implemented by dpkg
David Kalnischkies [Sat, 16 Aug 2014 14:33:46 +0000 (16:33 +0200)] 
support versioned provides as implemented by dpkg

APT supported versioned provides for a long while in an attempt to get
it working with rpm. While this support is old, we can be relatively
sure that it works as versioned provides are used internally to make
Multi-Arch:foreign work.

Previous versions of apt will print a warning indicating that the
versioned provides is ignored, so that something which "Provides: foo (=
2)" doesn't provide anything.

Note that dpkg does allow only a equals-relation in the provides line
as anything else is deemed too complex. apt doesn't support anything
else either and such a support would require potentially big changes.

Closes: 758153
10 years agoadd dpkg::source-options for dpkg-source invocation
David Kalnischkies [Sat, 16 Aug 2014 11:29:10 +0000 (13:29 +0200)] 
add dpkg::source-options for dpkg-source invocation

dpkg-source can be told to enforce signature checks with
--require-valid-signature, but while this isn't feasible as default for
Debian itself at the moment, a local admin should be able to use it.

This commit also fixes the size limit on the construction of the command
being called for dpkg-source and dpkg-buildpackage.

Closes: 757534
10 years agoCzech program translation update
Miroslav Kure [Fri, 15 Aug 2014 17:42:41 +0000 (19:42 +0200)] 
Czech program translation update

Closes: 758208
10 years agoTurkish program translation update
Mert Dirik [Fri, 15 Aug 2014 17:37:39 +0000 (19:37 +0200)] 
Turkish program translation update

Closes: 756710
10 years agorewrite and extend new README file
David Kalnischkies [Sat, 19 Jul 2014 11:30:48 +0000 (13:30 +0200)] 
rewrite and extend new README file

Reuse description from the package descriptions and add various
subsection describing useful debug options and general information.

Git-Dch: Ignore

10 years agoremove obsolete documentation bits
David Kalnischkies [Sat, 19 Jul 2014 11:30:08 +0000 (13:30 +0200)] 
remove obsolete documentation bits

Git-Dch: Ignore

10 years agoensure that all docs use all entities files
David Kalnischkies [Fri, 18 Jul 2014 14:42:40 +0000 (16:42 +0200)] 
ensure that all docs use all entities files

Not all are needed for all files at the moment, but the new docbook
building hadn't available some of the entities it used as the files
weren't correctly copied around in all cases and having the same across
the bord makes working with all of them a little easier.

Git-Dch: Ignore

10 years agoparse debian/tests/control for test dependencies
David Kalnischkies [Fri, 18 Jul 2014 10:28:21 +0000 (12:28 +0200)] 
parse debian/tests/control for test dependencies

Our integration tests need some additional dependencies to run and
function correctly, but while multiple places run them, there is no need
to also specify the these dependencies in multiple places.

Git-Dch: Ignore

10 years agoFix debListParser to accept "no" as a value for the Multi-Arch field
Julian Andres Klode [Sun, 24 Aug 2014 16:43:07 +0000 (18:43 +0200)] 
Fix debListParser to accept "no" as a value for the Multi-Arch field

Seems this was missed somehow.

Closes: #759099
10 years agoFix debListParser to accept "no" as a value for the Multi-Arch field
Julian Andres Klode [Sun, 24 Aug 2014 16:43:07 +0000 (18:43 +0200)] 
Fix debListParser to accept "no" as a value for the Multi-Arch field

Seems this was missed somehow.

Closes: #759099
10 years agodoc/po/pt.po: updated, thanks to Américo Monteir
Michael Vogt [Tue, 29 Jul 2014 16:07:44 +0000 (18:07 +0200)] 
doc/po/pt.po: updated, thanks to Américo Monteir

Closes: #756200
10 years agodoc/apt.8.xml: fix typo, thanks to Jakub Wilk
Michael Vogt [Tue, 29 Jul 2014 15:54:03 +0000 (17:54 +0200)] 
doc/apt.8.xml: fix typo, thanks to Jakub Wilk

Closes: #756056
10 years agoFix SmartConfigure to ignore ordering of packages that are already valid
Michael Vogt [Tue, 29 Jul 2014 13:01:13 +0000 (15:01 +0200)] 
Fix SmartConfigure to ignore ordering of packages that are already valid

With the change of SmartConfigure() in git commit 42d51f the ordering
code was trying to re-order dependencies, even when at this point in
time this was not needed. Now it will first check all targets of the
given dependency and only if there is not a good one try to reorder
and unpack/configure as needed.

Closes: LP: #1347721
10 years agol10n: vi.po (636t): Update one new string
Trần Ngọc Quân [Thu, 24 Jul 2014 08:03:45 +0000 (15:03 +0700)] 
l10n: vi.po (636t): Update one new string

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
10 years agoapt-pkg/acquire-item.cc: make pkgAcqDiffIndex more uniform
Michael Vogt [Thu, 17 Jul 2014 07:59:55 +0000 (09:59 +0200)] 
apt-pkg/acquire-item.cc: make pkgAcqDiffIndex more uniform

10 years agoUse @builddeps@ in the debian/tests/control file
Michael Vogt [Thu, 17 Jul 2014 07:59:01 +0000 (09:59 +0200)] 
Use @builddeps@ in the debian/tests/control file

10 years agoUpdate Japanese documentation translation
victory [Wed, 16 Jul 2014 12:17:09 +0000 (14:17 +0200)] 
Update Japanese documentation translation

Closes: #754817
10 years agoDo not crash for apt-get install /dev/null
Michael Vogt [Wed, 16 Jul 2014 13:48:05 +0000 (15:48 +0200)] 
Do not crash for apt-get install /dev/null

Thanks to Jakub Wilk for the bugreport.

Closes: #754904
10 years agoStringToBool: only act if the entire string is consumed by strtol()
Michael Vogt [Wed, 16 Jul 2014 11:57:50 +0000 (13:57 +0200)] 
StringToBool: only act if the entire string is consumed by strtol()

StringToBool uses strtol() internally to check if the argument is
a number. This function stops when it does not find any more numbers.
So a string like "0ad" (which is a valid packagename) is interpreted
as a "0". The code now checks that the entire string is consumed
not just a part of it. Thanks to Johannes Schauer for raising this
issue.

10 years agoMerge remote-tracking branch 'mvo/feature/README' into debian/sid
Michael Vogt [Thu, 10 Jul 2014 18:53:20 +0000 (20:53 +0200)] 
Merge remote-tracking branch 'mvo/feature/README' into debian/sid

10 years agoadd REAMDE.md
Michael Vogt [Thu, 10 Jul 2014 15:46:26 +0000 (17:46 +0200)] 
add REAMDE.md

10 years agoreleasing package apt version 1.1~exp2 1.1.exp2
Michael Vogt [Thu, 10 Jul 2014 12:17:22 +0000 (14:17 +0200)] 
releasing package apt version 1.1~exp2

10 years agorestore breaks against libapt-inst1.5 (<< 0.9.9)
Michael Vogt [Thu, 10 Jul 2014 11:46:25 +0000 (13:46 +0200)] 
restore breaks against libapt-inst1.5 (<< 0.9.9)

10 years agoprepare release 1.1~exp2
Michael Vogt [Thu, 10 Jul 2014 11:18:33 +0000 (13:18 +0200)] 
prepare release 1.1~exp2

10 years agoMerge branch 'debian/sid' into debian/experimental
Michael Vogt [Thu, 10 Jul 2014 11:16:50 +0000 (13:16 +0200)] 
Merge branch 'debian/sid' into debian/experimental

Conflicts:
configure.ac
debian/changelog
doc/apt-verbatim.ent
doc/po/apt-doc.pot
doc/po/fr.po
po/ar.po
po/ast.po
po/bg.po
po/bs.po
po/ca.po
po/cs.po
po/cy.po
po/de.po
po/dz.po
po/el.po
po/es.po
po/eu.po
po/fi.po
po/fr.po
po/gl.po
po/hu.po
po/it.po
po/ja.po
po/km.po
po/ko.po
po/ku.po
po/lt.po
po/nb.po
po/ne.po
po/nl.po
po/nn.po
po/pl.po
po/pt.po
po/pt_BR.po
po/ro.po
po/ru.po
po/sk.po
po/sl.po
po/sv.po
po/th.po
po/tl.po
po/tr.po
po/uk.po
po/zh_CN.po
po/zh_TW.po

10 years agoreleasing package apt version 1.0.6 1.0.6
Michael Vogt [Thu, 10 Jul 2014 09:46:56 +0000 (11:46 +0200)] 
releasing package apt version 1.0.6

10 years agoprepare 1.0.6
Michael Vogt [Thu, 10 Jul 2014 08:52:34 +0000 (10:52 +0200)] 
prepare 1.0.6

10 years agoAllow passing a full path to apt-get install /foo/bar.deb
Michael Vogt [Thu, 10 Jul 2014 08:47:08 +0000 (10:47 +0200)] 
Allow passing a full path to apt-get install /foo/bar.deb

CLoses: #752327

10 years agoOnly show packages as upgradable if the have a CandidateVer != 0
Michael Vogt [Tue, 8 Jul 2014 14:06:56 +0000 (16:06 +0200)] 
Only show packages as upgradable if the have a CandidateVer != 0

Closes: #753297
10 years agoOnly allow "apt-get build-dep path" when path starts with ./ or /
Michael Vogt [Tue, 8 Jul 2014 13:11:14 +0000 (15:11 +0200)] 
Only allow "apt-get build-dep path" when path starts with ./ or /

This avoid the subtle problem that someone might have a directory
with the same package name as the build-depends he/she is trying
to fetch. Also print a note that the specific file/dir is used.

10 years agoMerge branch 'debian/sid' into debian/experimental
Michael Vogt [Tue, 8 Jul 2014 11:37:11 +0000 (13:37 +0200)] 
Merge branch 'debian/sid' into debian/experimental

Conflicts:
apt-pkg/deb/deblistparser.cc
doc/po/apt-doc.pot
doc/po/de.po
doc/po/es.po
doc/po/fr.po
doc/po/it.po
doc/po/ja.po
doc/po/pl.po
doc/po/pt.po
doc/po/pt_BR.po
po/da.po
po/mr.po
po/vi.po

10 years agodoc: Unfuzzy DocBook translations
Guillem Jover [Wed, 2 Jul 2014 00:38:27 +0000 (02:38 +0200)] 
doc: Unfuzzy DocBook translations

10 years agodoc: Convert from DebianDoc SGML to DocBook XML
Guillem Jover [Wed, 2 Jul 2014 00:22:32 +0000 (02:22 +0200)] 
doc: Convert from DebianDoc SGML to DocBook XML

10 years agobuild: Convert from DebianDoc SGML to DocBook XML
Guillem Jover [Wed, 2 Jul 2014 02:10:37 +0000 (04:10 +0200)] 
build: Convert from DebianDoc SGML to DocBook XML

10 years agobuild: Set the XSL parameter through the command line instead of sed
Guillem Jover [Wed, 2 Jul 2014 23:56:52 +0000 (01:56 +0200)] 
build: Set the XSL parameter through the command line instead of sed

Use the xsltproc --stringparam option instead of replacing it inside the
file.

10 years agopo: Fix format specifier order in translation
Guillem Jover [Thu, 3 Jul 2014 22:54:15 +0000 (00:54 +0200)] 
po: Fix format specifier order in translation

10 years agopo: Fix encoding issues
Guillem Jover [Fri, 4 Jul 2014 06:14:07 +0000 (08:14 +0200)] 
po: Fix encoding issues

Remove trailing CR characters, and fix Content-Transfer-Encoding field
value.

10 years agopo: Fix or add missing email addresses
Guillem Jover [Fri, 4 Jul 2014 06:11:06 +0000 (08:11 +0200)] 
po: Fix or add missing email addresses

Fill Report-Msgid-Bugs-To field, remove spurious email line junk and
make Last-Translator and Language-Team fields contain valid emails.

10 years agopo: Fix Plural-Forms fields
Guillem Jover [Fri, 4 Jul 2014 06:09:16 +0000 (08:09 +0200)] 
po: Fix Plural-Forms fields

10 years agopo: Fill Project-Id-Version with correct project id and version
Guillem Jover [Fri, 4 Jul 2014 06:03:31 +0000 (08:03 +0200)] 
po: Fill Project-Id-Version with correct project id and version

10 years agopo: Remove fuzzy from file msgid header
Guillem Jover [Wed, 2 Jul 2014 15:52:34 +0000 (17:52 +0200)] 
po: Remove fuzzy from file msgid header

10 years agopo: Fill or add missing Language field
Guillem Jover [Wed, 2 Jul 2014 15:52:34 +0000 (17:52 +0200)] 
po: Fill or add missing Language field

10 years agoDo not clean "/" in pkgAcquire::Clean/pkgArchiveCleaner
Michael Vogt [Tue, 8 Jul 2014 09:27:01 +0000 (11:27 +0200)] 
Do not clean "/" in pkgAcquire::Clean/pkgArchiveCleaner

Having "/" here is most likely a user configuration error and
may cause removal of import symlinks like /vmlinuz

Closes: #753531
10 years agoImprove description how to turn off the caches
Cédric Barboiron [Tue, 8 Jul 2014 09:24:46 +0000 (11:24 +0200)] 
Improve description how to turn off the caches

Closes: #753531
10 years agoincrease libapt-inst to version 1.6
Michael Vogt [Tue, 8 Jul 2014 08:05:54 +0000 (10:05 +0200)] 
increase libapt-inst to version 1.6

10 years agoFix ar and tar code to be LFS-safe
Guillem Jover [Wed, 2 Jul 2014 01:10:21 +0000 (03:10 +0200)] 
Fix ar and tar code to be LFS-safe

This is an ABI break.

Closes: #742882
10 years agoAdd new Base256ToNum long long overload function
Guillem Jover [Wed, 2 Jul 2014 01:12:00 +0000 (03:12 +0200)] 
Add new Base256ToNum long long overload function

10 years agouse printf instead of echo in testing framework
Michele Orrù [Mon, 7 Jul 2014 18:48:16 +0000 (20:48 +0200)] 
use printf instead of echo in testing framework

The behaviour of echo "\tA\t" differs between dash/zsh which interprets
the \t as tab and bash which prints it literally. Similar things happen
for other escape sequences – without the -e flag.
Switching to printf makes this more painless^Wportable, so that the
tests are also working correctly with bash as sh.
(commit message by committer, patch otherwise unmodified)

10 years agoproperly handle (currently unused) dpkg pass-through
David Kalnischkies [Mon, 7 Jul 2014 18:45:28 +0000 (20:45 +0200)] 
properly handle (currently unused) dpkg pass-through

Git-Dch: ignore

10 years agouse exit instead of incorrect return in test wrapper
Michele Orrù [Mon, 7 Jul 2014 18:43:45 +0000 (20:43 +0200)] 
use exit instead of incorrect return in test wrapper

bash as sh doesn't like it, too.

Git-Dch: Ignore

10 years agohandle moved mmap after UniqFindTagWrite call
David Kalnischkies [Mon, 7 Jul 2014 15:19:29 +0000 (17:19 +0200)] 
handle moved mmap after UniqFindTagWrite call

A call to UniqFindTagWrite can trigger the need for a bigger mmap, which
is usually done by moving it, but with this move all pointers into it
become invalid (and have to be remapped). The compiler calculates the
pointer before the execution of the call though, so it tries to store
the returned value at the old location, resulting in a segfault.
We solve this by use of a temprorary variable as we did in the other
instances of this problem before.

Closes: #753941
10 years agoDanish program translation update
Joe Hansen [Mon, 7 Jul 2014 10:18:58 +0000 (12:18 +0200)] 
Danish program translation update

Closes: 753979
10 years agoTry not to parse invalid translation files (LP: #756317)
Michael Vogt [Thu, 3 Jul 2014 16:20:44 +0000 (18:20 +0200)] 
Try not to parse invalid translation files (LP: #756317)

10 years agoredo two typo fixes lost in German update collision
David Kalnischkies [Wed, 25 Jun 2014 11:37:58 +0000 (13:37 +0200)] 
redo two typo fixes lost in German update collision

In 037fada40db175e95f44c0cb039474c6dc518963 two typos were fixed which
collided with an update ongoing for German po which was committed in
48388911a734ed9ce10ab05043fadba3eed09a1f, so this commit just merges the
first commit again.

Git-Dch: Ignore

10 years agol10n: vi.po: Update 3 new messages
Trần Ngọc Quân [Sun, 22 Jun 2014 02:20:48 +0000 (09:20 +0700)] 
l10n: vi.po: Update 3 new messages

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
10 years agomethods/http.cc: use Req.str() in debug output
Michael Vogt [Tue, 24 Jun 2014 13:45:09 +0000 (15:45 +0200)] 
methods/http.cc: use Req.str() in debug output

10 years agoGerman translation reviewed by Erik Pfannenstein
Chris Leick [Thu, 19 Jun 2014 20:01:48 +0000 (22:01 +0200)] 
German translation reviewed by Erik Pfannenstein

10 years agoreleasing package apt version 1.1~exp1 1.1.exp1
Michael Vogt [Thu, 19 Jun 2014 10:01:54 +0000 (12:01 +0200)] 
releasing package apt version 1.1~exp1

10 years agoset gdb.conf branch to experimental
Michael Vogt [Wed, 18 Jun 2014 18:20:25 +0000 (20:20 +0200)] 
set gdb.conf branch to experimental

10 years agoprepare release
Michael Vogt [Thu, 19 Jun 2014 10:00:33 +0000 (12:00 +0200)] 
prepare release

10 years agoMerge branch 'debian/sid' into debian/experimental
Michael Vogt [Wed, 18 Jun 2014 18:22:36 +0000 (20:22 +0200)] 
Merge branch 'debian/sid' into debian/experimental

Conflicts:
debian/changelog

10 years agoapt-pkg/indexrecords.cc: ensure that indexRecords::checkSum::Hash is initialized
Michael Vogt [Wed, 18 Jun 2014 14:18:03 +0000 (16:18 +0200)] 
apt-pkg/indexrecords.cc: ensure that indexRecords::checkSum::Hash is initialized

10 years agoapt-pkg/acquire-item.h: add default argument to ExpectedHashes to avoid API break
Michael Vogt [Wed, 18 Jun 2014 13:05:44 +0000 (15:05 +0200)] 
apt-pkg/acquire-item.h: add default argument to ExpectedHashes to avoid API break

10 years agoreadd pkgPackageManager::Go() to not break API
Michael Vogt [Wed, 18 Jun 2014 13:05:32 +0000 (15:05 +0200)] 
readd pkgPackageManager::Go() to not break API

10 years agoreleasing package apt version 1.0.5 1.0.5
Michael Vogt [Wed, 18 Jun 2014 11:36:36 +0000 (13:36 +0200)] 
releasing package apt version 1.0.5

10 years agocorrect 'apt-cache stats' to include more
David Kalnischkies [Fri, 13 Jun 2014 07:10:11 +0000 (09:10 +0200)] 
correct 'apt-cache stats' to include more

It still doesn't reflect the size the cache has on the disk compared to
what is given as total size (90 vs 103 MB), but by counting all structs
in we are at least a bit closer to the reality.

Git-Dch: ignore

10 years agoremove the Section member from package struct
David Kalnischkies [Fri, 13 Jun 2014 06:35:32 +0000 (08:35 +0200)] 
remove the Section member from package struct

A version belongs to a section and has hence a section member of its
own. A package on the other hand can have multiple versions from
different sections. This was "solved" by using the section which was
parsed first as order of sources.list defines, but that is obviously a
horribly unpredictable thing.

We therefore directly remove this struct member to free some space and
mark the access method as deprecated, which is told to return the
section of the 'newest' known version, which is at least predictable,
but possible not what it returned before – but nobody knows.

Users are way better of with the Section() as returned by the version
they are dealing with. It is likely the same for all versions of a
package, but in the few cases it isn't, it is important (like packages
moving from main/* to contrib/* or into oldlibs …).

10 years agocleanup datatypes mix used in binary cache
David Kalnischkies [Thu, 12 Jun 2014 10:22:45 +0000 (12:22 +0200)] 
cleanup datatypes mix used in binary cache

We had a wild mixture of (unsigned) int, long and long long here without
much sense, so this commit adds a few typedefs to get some sense in the
typesystem and ensures that a ID isn't sometimes computed as int, stored
as long and compared with a long long… as this could potentially bite us
later on as the size of the archive only increases over time.

10 years agoincrease hashtable size for packages/groups by factor 5
David Kalnischkies [Wed, 11 Jun 2014 18:42:16 +0000 (20:42 +0200)] 
increase hashtable size for packages/groups by factor 5

It also makes the size configureable, so it can be adapted in the future
without the need for an abi break - and even by users…

The increase was long overdue as it gives a >10% decrease in runtime of
e.g. 'apt-get check -s'. Some (useless) benchmark with 69933 groups and
187796 packages without a pre-built cache:
time apt-get check -so APT::Cache-HashTableSize=1 → 20m
time apt-get check -so APT::Cache-HashTableSize=1000 → 6,41s
time apt-get check -so APT::Cache-HashTableSize=2000 → 5,64s (old)
time apt-get check -so APT::Cache-HashTableSize=3000 → 5,30s
time apt-get check -so APT::Cache-HashTableSize=5000 → 5,08s
time apt-get check -so APT::Cache-HashTableSize=6000 → 5,05s
time apt-get check -so APT::Cache-HashTableSize=7000 → 5,02s
time apt-get check -so APT::Cache-HashTableSize=8000 → 5,00s
time apt-get check -so APT::Cache-HashTableSize=9000 → 4,98s
time apt-get check -so APT::Cache-HashTableSize=10000 → 4,96s (new)
time apt-get check -so APT::Cache-HashTableSize=15000 → 4,90s
time apt-get check -so APT::Cache-HashTableSize=20000 → 4,86s
time apt-get check -so APT::Cache-HashTableSize=30000 → 4,77s
time apt-get check -so APT::Cache-HashTableSize=40000 → 4,74s
time apt-get check -so APT::Cache-HashTableSize=50000 → 4,73s
time apt-get check -so APT::Cache-HashTableSize=60000 → 4,71s

The gap increases further for operations which have more package
lookups. Factor 5 was chosen as higher values do not provide any
really significant timing advantage anymore compared to the memory
increase in my testing and there is always the possibility to increase
it now if that changes. (also most users will not have 3 releases and
4 architectures in the cache, so theirs will be much smaller and faster).

10 years agoMerge remote-tracking branch 'donkult/debian/sid' into debian/experimental
Michael Vogt [Wed, 18 Jun 2014 09:21:35 +0000 (11:21 +0200)] 
Merge remote-tracking branch 'donkult/debian/sid' into debian/experimental

Conflicts:
apt-private/private-install.cc

10 years agoEDSP doc: some typo and wording fixes
David Kalnischkies [Tue, 17 Jun 2014 17:25:03 +0000 (19:25 +0200)] 
EDSP doc: some typo and wording fixes

Git-Dch: Ignore

10 years agoEDSP doc: (minor) consistently use 2 blank lines before headings
Stefano Zacchiroli [Tue, 17 Jun 2014 15:04:09 +0000 (17:04 +0200)] 
EDSP doc: (minor) consistently use 2 blank lines before headings

Git-Dch: Ignore

10 years agoEDSP doc: clarify that Install/Remove packages are arch-qualified
Stefano Zacchiroli [Tue, 17 Jun 2014 15:03:27 +0000 (17:03 +0200)] 
EDSP doc: clarify that Install/Remove packages are arch-qualified

10 years agodo not call resolver twice on (dist-)upgrade
David Kalnischkies [Tue, 17 Jun 2014 17:05:53 +0000 (19:05 +0200)] 
do not call resolver twice on (dist-)upgrade

10 years agoshow our broken packages message in 'apt' solver
David Kalnischkies [Tue, 17 Jun 2014 15:45:33 +0000 (17:45 +0200)] 
show our broken packages message in 'apt' solver

10 years agofix SubstVar to be usable as a replace_all method
David Kalnischkies [Tue, 17 Jun 2014 14:55:19 +0000 (16:55 +0200)] 
fix SubstVar to be usable as a replace_all method

The name suggests that it is supposed to substitute a variable with a
value, but we tend to use it in a more liberal replace_all() fashion,
but this breaks if either of the parameters is empty or more importantly
if two "variable" occurrences follow each other directly.

10 years agodon't send pkg from an unknown architecture via EDSP
David Kalnischkies [Tue, 17 Jun 2014 11:47:01 +0000 (13:47 +0200)] 
don't send pkg from an unknown architecture via EDSP

APT's cache can include packages from architectures dpkg has no
knowledge about and can therefore not be installed for e.g. to allow
easy lookups. There is no point in telling external solvers about them
though and some of them might even be really talkative about ignoring
them if we do.

10 years agouse P_ instead of ngettext to compiling with --disable-nls
Fredrik Fornwall [Tue, 17 Jun 2014 09:33:00 +0000 (11:33 +0200)] 
use P_ instead of ngettext to compiling with --disable-nls

Closes: 751857
10 years agoadd missing comma in SEE ALSO of apt-secure manpage
Konstantin Manna [Sun, 15 Jun 2014 16:35:15 +0000 (18:35 +0200)] 
add missing comma in SEE ALSO of apt-secure manpage

Closes: 748506
10 years agofix two german manpage spelling mistakes
Konstantin Manna [Sat, 14 Jun 2014 22:53:04 +0000 (00:53 +0200)] 
fix two german manpage spelling mistakes

Closes: 751635
10 years agoMerge remote-tracking branch 'mvo/feature/drop-rights' into debian/experimental
Michael Vogt [Wed, 18 Jun 2014 08:47:19 +0000 (10:47 +0200)] 
Merge remote-tracking branch 'mvo/feature/drop-rights' into debian/experimental

Conflicts:
apt-pkg/contrib/fileutl.cc
apt-pkg/contrib/fileutl.h

10 years agoMerge remote-tracking branch 'mvo/feature/update-by-hash' into debian/experimental
Michael Vogt [Wed, 18 Jun 2014 08:46:08 +0000 (10:46 +0200)] 
Merge remote-tracking branch 'mvo/feature/update-by-hash' into debian/experimental

10 years agoMerge remote-tracking branch 'mvo/feature/hash-stats' into debian/experimental
Michael Vogt [Wed, 18 Jun 2014 08:13:01 +0000 (10:13 +0200)] 
Merge remote-tracking branch 'mvo/feature/hash-stats' into debian/experimental

Conflicts:
apt-pkg/acquire-item.cc
apt-pkg/acquire-item.h
apt-pkg/deb/debmetaindex.h
apt-pkg/pkgcache.cc
test/integration/test-apt-ftparchive-src-cachedb

10 years agoProvide ShowHashTableStats function
Michael Vogt [Wed, 18 Jun 2014 07:36:48 +0000 (09:36 +0200)] 
Provide ShowHashTableStats function

10 years ago[API-Break] rename pkgCache::Package::NextPackage to pkgCache::Package::Next
Michael Vogt [Wed, 18 Jun 2014 07:35:53 +0000 (09:35 +0200)] 
[API-Break] rename pkgCache::Package::NextPackage to pkgCache::Package::Next

This is a internal struct not a external interface so the actual
breakage should be small.

10 years agoimprove formating of the hash stats
Michael Vogt [Wed, 18 Jun 2014 06:51:59 +0000 (08:51 +0200)] 
improve formating of the hash stats