ntk/apt.git
10 years agofix missing va_end()
Michael Vogt [Fri, 26 Jul 2013 20:12:36 +0000 (22:12 +0200)]
fix missing va_end()

10 years agofix some coverity chroot() releated warnings
Michael Vogt [Fri, 26 Jul 2013 20:10:05 +0000 (22:10 +0200)]
fix some coverity chroot() releated warnings

10 years agoadd missing test make
Michael Vogt [Fri, 26 Jul 2013 15:31:24 +0000 (17:31 +0200)]
add missing test make

10 years agoadd missing "make test" for travis
Michael Vogt [Fri, 26 Jul 2013 09:22:30 +0000 (11:22 +0200)]
add missing "make test" for travis

10 years agobuild tree first
Michael Vogt [Fri, 26 Jul 2013 05:20:23 +0000 (07:20 +0200)]
build tree first

10 years agomake setup in travis.yml a bit more verbose
Michael Vogt [Fri, 26 Jul 2013 05:10:21 +0000 (07:10 +0200)]
make setup in travis.yml a bit more verbose

10 years agofix travis.yml
Michael Vogt [Thu, 25 Jul 2013 19:06:40 +0000 (21:06 +0200)]
fix travis.yml

10 years agoadd missing "free(buffer) for allocated buffer
Michael Vogt [Thu, 25 Jul 2013 18:55:18 +0000 (20:55 +0200)]
add missing "free(buffer) for allocated buffer

10 years agofix potential GetLock() fd leak
Michael Vogt [Thu, 25 Jul 2013 18:55:02 +0000 (20:55 +0200)]
fix potential GetLock() fd leak

10 years agodelete targets data
Michael Vogt [Thu, 25 Jul 2013 18:46:08 +0000 (20:46 +0200)]
delete targets data

10 years agofix resource leak when verification fails
Michael Vogt [Thu, 25 Jul 2013 18:45:53 +0000 (20:45 +0200)]
fix resource leak when verification fails

10 years agoapt-pkg/indexcopy.cc: check for pending errors before calling fdopen()
Michael Vogt [Thu, 25 Jul 2013 18:41:03 +0000 (20:41 +0200)]
apt-pkg/indexcopy.cc: check for pending errors before calling fdopen()

10 years agocall fdopen() after FileFd was checked
Michael Vogt [Thu, 25 Jul 2013 18:36:23 +0000 (20:36 +0200)]
call fdopen() after FileFd was checked

10 years agoadd .travis.yml
Michael Vogt [Thu, 25 Jul 2013 18:30:59 +0000 (20:30 +0200)]
add .travis.yml

10 years agofix resource leak (thanks coverity)
Michael Vogt [Thu, 25 Jul 2013 18:26:11 +0000 (20:26 +0200)]
fix resource leak (thanks coverity)

10 years agorework the code in cdromutl.cc to make coverity (more) happy
Michael Vogt [Thu, 25 Jul 2013 18:22:43 +0000 (20:22 +0200)]
rework the code in cdromutl.cc to make coverity (more) happy

10 years agofix off-by-one error in HttpMethod::​AutoDetectProxy()
Michael Vogt [Thu, 25 Jul 2013 18:16:31 +0000 (20:16 +0200)]
fix off-by-one error in HttpMethod::​AutoDetectProxy()

10 years agofix off-by-one error and do not use magic constant of 100 when checking StackPost
Michael Vogt [Thu, 25 Jul 2013 18:14:59 +0000 (20:14 +0200)]
fix off-by-one error and do not use magic constant of 100 when checking StackPost

10 years agoalways "delete d" in FileFd::~FileFd to coverity happy
Michael Vogt [Thu, 25 Jul 2013 18:14:31 +0000 (20:14 +0200)]
always "delete d" in FileFd::~FileFd to coverity happy

10 years agoMerge remote-tracking branch 'upstream/debian/sid'
Michael Vogt [Wed, 24 Jul 2013 20:06:18 +0000 (22:06 +0200)]
Merge remote-tracking branch 'upstream/debian/sid'

10 years agoremove double list include
Michael Vogt [Tue, 23 Jul 2013 13:00:53 +0000 (15:00 +0200)]
remove double list include

10 years agoupdate changelog 0.9.9.1
Michael Vogt [Thu, 11 Jul 2013 18:44:52 +0000 (20:44 +0200)]
update changelog

10 years agoprevent MarkInstall of unsynced Multi-Arch:same siblings
David Kalnischkies [Wed, 10 Jul 2013 11:06:05 +0000 (13:06 +0200)]
prevent MarkInstall of unsynced Multi-Arch:same siblings

Multi-Arch: same packages can be co-installed, but need to have the same
version for all installed packages (aka "siblings"). Otherwise the
unsynced versions will fight against each other and the auto-install as
wel as the problem resolver will later have to decide between holding the
packages or to remove one of the siblings (usually a foreign) taking a
bunch of packages (like the entire foreign setup) with them.

The idea here is now to be more pro-active: MarkInstall will fail for
a package if the siblings aren't synced, so we don't allow a situation
in which a resolver has to decide if to hold or to remove-upgrade under
the assumption that the remove-upgrade decision is always wrong and
doesn't deserve to be explored (expect valid out-of-syncs of course).

Thats a pretty bold move to take for a library which is used by
different solvers so this check is done in IsInstallOk and can be
overridden if front-ends want to.

10 years agoimplement arch+= and arch-= for sources.list
David Kalnischkies [Fri, 28 Jun 2013 18:42:18 +0000 (20:42 +0200)]
implement arch+= and arch-= for sources.list

Default is to acquire all architectures from APT::Architectures which
can be changed by arch=, but this isn't very flexible if you want
"mostly" the default as you have to hardcode the architectures then,
so arch-= and arch+= can be used to add/remove architectures from the
default set.

On a machine with 'amd64' and 'i386' configured the lines:
 deb [arch+=armel] http://example.org/debian wheezy rocks
 deb [arch-=amd64] http://example.org/debian jessie rocks
will result in the download of:
 wheezy Packages for 'amd64', 'i386' and 'armel'
 jessie Packages for 'i386'

10 years agoVersion 3 for DPkg::Pre-Install-Pkgs with MultiArch info
David Kalnischkies [Wed, 26 Jun 2013 15:37:57 +0000 (17:37 +0200)]
Version 3 for DPkg::Pre-Install-Pkgs with MultiArch info

Adds on top of Version 2 to all displayed version numbers the
architecture as well as the MultiArch flag for consumption by the hooks.

Most of the time the architecture will be the same for both versions
displayed, but packages might change from "all" to "any" (or back)
between versions so we can't display the architecture for packages.

Pseudo-Format for Version 3:
<name> <version> <arch> <m-a-flag> <compare> <version> <arch> <m-a-flag>

Examples:
stuff - - none < 1 amd64 none **CONFIGURE**
libsame 1 i386 same < 2 i386 same **CONFIGURE**
stuff 2 i386 none > 1 i386 none **CONFIGURE**
libsame 2 i386 same > - - none **REMOVE**
toolkit 1 all foreign > - - none **REMOVE**

Closes: #712116

10 years agodebian/apt.auto-removal.sh: merge the remaining bits
Michael Vogt [Thu, 11 Jul 2013 05:52:34 +0000 (07:52 +0200)]
debian/apt.auto-removal.sh: merge the remaining bits

10 years ago* Fix up two things in debian/apt.auto-removal.sh:
Adam Conrad [Tue, 6 Nov 2012 22:54:31 +0000 (15:54 -0700)]
* Fix up two things in debian/apt.auto-removal.sh:
  - Use exact matches with $-terminated regexes, so we don't get
    confusion between similarly-named kernel flavours.
  - Keep linux-backports-modules in sync with installed kernels.
Conflicts:
configure.in
debian/changelog
doc/apt-verbatim.ent

10 years agoget dpkg from apt-config as well and add robustness against missing/failing apt-confi...
Michael Vogt [Mon, 5 Nov 2012 09:27:17 +0000 (10:27 +0100)]
get dpkg from apt-config as well and add robustness against missing/failing apt-config (for paranoia)
Conflicts:
debian/apt.auto-removal.sh

10 years agoMake sure we always have at least two kernels marked not for removal
Steve Langasek [Sat, 3 Nov 2012 07:28:54 +0000 (08:28 +0100)]
Make sure we always have at least two kernels marked not for removal

10 years agocherry pick 39a07ec8f2c612a5af234c7713571362f7ca90b4
Steve Langasek [Fri, 2 Nov 2012 23:39:19 +0000 (00:39 +0100)]
cherry pick 39a07ec8f2c612a5af234c7713571362f7ca90b4

10 years agoapt-pkg/packagemanager.cc:
Michael Vogt [Wed, 10 Jul 2013 14:41:14 +0000 (16:41 +0200)]
apt-pkg/packagemanager.cc:

* apt-pkg/packagemanager.cc:
  - increate APT::pkgPackageManager::MaxLoopCount to 5000

10 years agodebian/rules:
Michael Vogt [Fri, 5 Jul 2013 14:41:06 +0000 (16:41 +0200)]
debian/rules:

* debian/rules:
  - call dh_clean in clean (closes: #714980)

10 years agoreleasing version 0.9.9 0.9.9
Michael Vogt [Tue, 2 Jul 2013 06:58:43 +0000 (08:58 +0200)]
releasing version 0.9.9

10 years agofix format string error
Michael Vogt [Tue, 2 Jul 2013 06:45:03 +0000 (08:45 +0200)]
fix format string error

10 years agoupdate changelog
Michael Vogt [Tue, 2 Jul 2013 06:34:34 +0000 (08:34 +0200)]
update changelog

10 years agoMerge remote-tracking branch 'mvo/bugfix/bts-712433' into debian/sid
Michael Vogt [Tue, 2 Jul 2013 06:32:53 +0000 (08:32 +0200)]
Merge remote-tracking branch 'mvo/bugfix/bts-712433' into debian/sid

10 years agoMerge remote-tracking branch 'donkult/debian/sid' into debian/sid
Michael Vogt [Tue, 2 Jul 2013 06:32:34 +0000 (08:32 +0200)]
Merge remote-tracking branch 'donkult/debian/sid' into debian/sid

Conflicts:
debian/changelog

10 years agoupdate changelog
Michael Vogt [Tue, 2 Jul 2013 06:27:56 +0000 (08:27 +0200)]
update changelog

10 years agomake starting debug output of pkgProblemResolver proper english
Michael Vogt [Fri, 28 Jun 2013 05:37:55 +0000 (07:37 +0200)]
make starting debug output of pkgProblemResolver proper english

10 years agouse just one line for the debug output (thanks to donkult for the review)
Michael Vogt [Thu, 27 Jun 2013 08:27:29 +0000 (10:27 +0200)]
use just one line for the debug output (thanks to donkult for the review)

10 years agowhen doing MarkInstall() packages may also get removed, so show them in the debug...
Michael Vogt [Thu, 27 Jun 2013 05:26:39 +0000 (07:26 +0200)]
when doing MarkInstall() packages may also get removed, so show them in the debug output of Debug::pkgDepCache::AutoInstall=true

10 years agoshow broken count when starting the resolver
Michael Vogt [Thu, 27 Jun 2013 05:25:53 +0000 (07:25 +0200)]
show broken count when starting the resolver

10 years agomake update-po
Michael Vogt [Wed, 26 Jun 2013 05:38:02 +0000 (07:38 +0200)]
make update-po

10 years ago"mount path"->"mount point" and also make the warning a error when no CD-ROM is found
Michael Vogt [Wed, 26 Jun 2013 05:35:16 +0000 (07:35 +0200)]
"mount path"->"mount point" and also make the warning a error when no CD-ROM is found

10 years agosimple fork and pidfile aptwebserver
David Kalnischkies [Mon, 24 Jun 2013 14:34:38 +0000 (16:34 +0200)]
simple fork and pidfile aptwebserver

Forking only after being ready to accept clients avoids running races
with the tests which sometimes failed on the first 'apt-get update'
(or similar) with the previous background-start and hope for the best…

The commit fixes also some oversight output-order changes in regards to
Description-md5 and (I-M-S) race conditions in various tests.

Git-Dch: Ignore

10 years agodelete Memb on read-error in arfile
Niels Thykier [Mon, 24 Jun 2013 11:22:54 +0000 (13:22 +0200)]
delete Memb on read-error in arfile

Git-Dch: Ignore

10 years agofix SHA2* cleanups to zero-out the complete context
David Kalnischkies [Mon, 24 Jun 2013 10:51:29 +0000 (12:51 +0200)]
fix SHA2* cleanups to zero-out the complete context

GCC 4.8 is now clever enough to warn about:

contrib/sha2_internal.cc: In function ‘char* SHA256_End(SHA256_CTX*, char*)’:
contrib/sha2_internal.cc:656:31: warning: argument to ‘sizeof’ in ‘void*
memset(void*, int, size_t)’ call is the same expression as the destination;
did you mean to dereference it? [-Wsizeof-pointer-memaccess]
   MEMSET_BZERO(context, sizeof(context));

So fix it as suggested. Its interesting though that the SHA2*
calculation as far as we need it works even without zeroing out.

Git-Dch: Ignore

10 years agodo not modify DepIterator as we might check again
David Kalnischkies [Mon, 24 Jun 2013 10:29:48 +0000 (12:29 +0200)]
do not modify DepIterator as we might check again

fixup for 42d51f333e8ef522fed02cdfc48663488d56c3a3

The for-loop iterating over the DepIterators which need configuration
can (and will be in 'complicated' situations) run multiple times, so we
can't just GlobOr on the DepIterator as it modifies it, so that the next
iteration over the list ends up checking another dependency leading us
into a 'Internal error, packages left unconfigured. foopkg' maybe or we
are 'lucky' and calculate a solution which might break down the line

Git-Dch: Ignore

10 years agoImprove the apt-cdrom output when no CD-ROM can be auto-detected
Michael Vogt [Sat, 22 Jun 2013 08:03:24 +0000 (10:03 +0200)]
Improve the apt-cdrom output when no CD-ROM can be auto-detected
(closes: #712433)

10 years agofix syntax error in the configure-index
David Kalnischkies [Thu, 20 Jun 2013 18:21:58 +0000 (20:21 +0200)]
fix syntax error in the configure-index

The file isn't supposed to be a valid config file, but it should
show valid syntax non-the-less.

Git-Dch: Ignore

10 years agotrigger NODATA error for invalid InRelease files
David Kalnischkies [Mon, 17 Jun 2013 09:23:13 +0000 (11:23 +0200)]
trigger NODATA error for invalid InRelease files

With the selfgrown splitting we got the problem of not recovering
from networks which just reply with invalid data like those sending
us login pages to authenticate with the network (e.g. hotels) back.

The good thing about the InRelease file is that we know that it must
be clearsigned (a Release file might or might not have a detached sig)
so if we get a file but are unable to split it something is seriously
wrong, so there is not much point in trying further.

The Acquire system already looks out for a NODATA error from gpgv,
so this adds a new error message sent to the acquire system in case
the splitting we do now ourselves failed including this magic word.

Closes: #712486

10 years agotests: accept an explaination for msgfail
David Kalnischkies [Sun, 16 Jun 2013 21:23:28 +0000 (23:23 +0200)]
tests: accept an explaination for msgfail

Git-Dch: Ignore

10 years agosimple URI rewrite rules config for webserver
David Kalnischkies [Sat, 15 Jun 2013 21:58:12 +0000 (23:58 +0200)]
simple URI rewrite rules config for webserver

we have a test which required traditionally lighttpd to be executed
as it requires a webserver supporting some kind of URI rewriting.
Now with some lines of code our own webserver can do this and the
testcase can be enabled by default. This test hinted at the bug fixed
in the previous commit, so having more tests which can easily be run
is a good thing.

Git-Dch: Ignore

10 years agodo not redownload unchanged InRelease files
David Kalnischkies [Sat, 15 Jun 2013 21:47:07 +0000 (23:47 +0200)]
do not redownload unchanged InRelease files

Before we download the 'new' InRelease file the old file will be moved
out of the way with the name 'foobar_InRelease.reverify', so if no
partial file for the 'new' file exists take the modification time from
this reverify file, so that if we get an IMS hit for the InRelease file
we can move back the reverify file as new file rather than downloading
the 'new' file even though we already have it.

We do the same for Release files and this happened to work until the
reverify renaming was corrected for InRelease files.

10 years agoadd directory listing to the webserver
David Kalnischkies [Sat, 15 Jun 2013 14:45:12 +0000 (16:45 +0200)]
add directory listing to the webserver

Git-Dch: Ignore

10 years agoadd a simple webserver for our testcases
David Kalnischkies [Sat, 15 Jun 2013 13:45:22 +0000 (15:45 +0200)]
add a simple webserver for our testcases

APT needs to acquire data in a secure fashion over an inherently
unsecure way, known as the internet, while communicating with
unreliable partners, known as webservers and proxies.

For your integration tests we so far relied on 'normal' webservers,
but all of them have certain quirks and none is able to provide us
with all quirks which can be observed in the wild and we therefore
have to test with, so this webserver isn't trying to be fast, secure
or feature complete, but to provide all the quirks we need in a
consistent way.

This webserver also makes the APT project self-contained, as it is now
able to generate, serve as well as acquire package indexes. ;)

Git-Dch: Ignore

10 years agosupport \n and \r\n line endings in ReadMessages
David Kalnischkies [Sat, 15 Jun 2013 08:35:04 +0000 (10:35 +0200)]
support \n and \r\n line endings in ReadMessages

10 years agotry defaults if auto-detection failed in apt-cdrom
David Kalnischkies [Sun, 16 Jun 2013 16:28:45 +0000 (18:28 +0200)]
try defaults if auto-detection failed in apt-cdrom

The default is to ask udev for location and mountpoints of CD-ROMs,
but the old way of specifying the mountpoint is still available and
is tried now in case udev doesn't find any CD-ROM.

It probably fails, too, but we get a bunch of error messages this
way and the user can get an idea of how to make his setup work even
if udev can't be convienced to return something useful.

Closes: #712433

10 years agohandle missing "Description" in apt-cache show
David Kalnischkies [Sun, 16 Jun 2013 13:42:31 +0000 (15:42 +0200)]
handle missing "Description" in apt-cache show

do not blindly assume that all packages stanzas have a "Description:"
field in 'apt-cache show' as well as in the cache creation itself.

We instead assume now that if the stanza has a Description, it will not
be the first field as we look out for "\nDescription" to take care of
MD5sum as well as (maybe ignored) translated Descriptions embedded in
the package stanza.

Closes: #712435

10 years agofix file location for configure-index.gz in apt.conf(5)
David Kalnischkies [Thu, 13 Jun 2013 11:52:18 +0000 (13:52 +0200)]
fix file location for configure-index.gz in apt.conf(5)

Closes: #711921

10 years agotests: add an interactive 'test' with multiple cdroms
David Kalnischkies [Sun, 9 Jun 2013 20:13:20 +0000 (22:13 +0200)]
tests: add an interactive 'test' with multiple cdroms

Can't be used as a test as is, but shows how to build multiple
CD-ROMs for tests and can be used to reproduce debbug #711456.

Git-Dch: Ignore

10 years agoensure state-dir exists before coyping cdrom files
David Kalnischkies [Sun, 9 Jun 2013 16:58:34 +0000 (18:58 +0200)]
ensure state-dir exists before coyping cdrom files

We do the same in the acquire system which handles the 'normal'
downloads, so do it here as well even though its unlikely anyone
will ever notice (beside testcases of course …)

10 years agofail in CopyFile if the FileFds have error flag set
David Kalnischkies [Sun, 9 Jun 2013 16:33:48 +0000 (18:33 +0200)]
fail in CopyFile if the FileFds have error flag set

Testing for global PendingErrors in users of CopyFile is incorrect
in so far as unrelated errors will prevent us from copying perfectly
fine files and checking for the validity of the files is just better
in CopyFiles as it already checks if files are at least opened.

Add also a higher-level error message to the error stack if it fails.

10 years agostop building l10n if strings are unchanged
David Kalnischkies [Fri, 31 May 2013 16:19:09 +0000 (18:19 +0200)]
stop building l10n if strings are unchanged

The buildsystem tried to build l10n for test applications which never
produced the output it expected causing it to try building it all the
time.

10 years agodepend on libapt-pkg in the libapt-inst build process
David Kalnischkies [Tue, 28 May 2013 16:48:28 +0000 (18:48 +0200)]
depend on libapt-pkg in the libapt-inst build process

fixing parallel build in the handcrafted buildsystem is a pain,
so its not enabled by default, but its works for me – sometimes

Git-Dch: Ignore

10 years agotests: add expected port for cve-2013-105 testcase
David Kalnischkies [Tue, 28 May 2013 16:17:55 +0000 (18:17 +0200)]
tests: add expected port for cve-2013-105 testcase

Git-Dch: Ignore

10 years agotests: trap-adding can be post- as well as prefix
David Kalnischkies [Tue, 28 May 2013 16:08:32 +0000 (18:08 +0200)]
tests: trap-adding can be post- as well as prefix

For testcases it might sometimes be handy to add trap-actions
before the general cleanup, e.g. if it has set directories read-
only which rm doesn't want to remove even with --force applied
(its fine with files though)

Git-Dch: Ignore

10 years agoOpenDescriptor should autoclose fd always on error
David Kalnischkies [Sat, 25 May 2013 18:33:15 +0000 (20:33 +0200)]
OpenDescriptor should autoclose fd always on error

OpenInternDescriptor failures would cause additional errors to be
generated by double-closing an fd. Other errors (although these
 are generated if the method is used incorrectly, so unlikely)
didn't close the fd aswell.

Closes: 704608

10 years agodon't explicitly init ExtractTar InFd with invalid fd
David Kalnischkies [Sat, 25 May 2013 18:27:33 +0000 (20:27 +0200)]
don't explicitly init ExtractTar InFd with invalid fd

The default constructor of the FileFd will kick in anyway,
which will know that the Fd is invalid while with this explicit
call it must be assumed that the fd is in fact valid, which
might generate errors in the future

10 years agoset Fail flag in FileFd on all errors consistently
David Kalnischkies [Sat, 25 May 2013 18:22:06 +0000 (20:22 +0200)]
set Fail flag in FileFd on all errors consistently

Previously some errors would set the Fail flag while some didn't
without a clear reason as all errors leave a bad FileFd behind,
so we use a helper now to ensure that all errors set the flag.

10 years agomake the vprintf like _error->Insert public
David Kalnischkies [Sat, 25 May 2013 18:18:15 +0000 (20:18 +0200)]
make the vprintf like _error->Insert public

Git-Dch: Ignore

10 years agofix support for multiple patterns in apt-cache search
David Kalnischkies [Sat, 25 May 2013 17:57:48 +0000 (19:57 +0200)]
fix support for multiple patterns in apt-cache search

Patterns can appear in the name as well as in the description,
they don't have to match all in the name/description only.

Closes: 691453

10 years agoinitialize the whole search array with zero
David Kalnischkies [Sat, 25 May 2013 17:47:28 +0000 (19:47 +0200)]
initialize the whole search array with zero

Git-Dch: Ignore

10 years agodeprecate InstallProtect as a cpu-eating no-op
David Kalnischkies [Fri, 24 May 2013 08:20:38 +0000 (10:20 +0200)]
deprecate InstallProtect as a cpu-eating no-op

In the past packages were flagged "Protected" so that install/
remove markings where issued before the ProblemResolver.
Nowadays, the marking methods check if they are allowed to modify
the marking of a package instead, so that markings set by FromUser
calls are not overwritten anymore by automatic calls which elimates
the need for InstallProtect which just eats CPU now.

The method itself is left untouched for now in case frontend needs it
still for some wierd usecase, but they should be eliminated.

10 years agodo unpacks before configures in SmartConfigure
David Kalnischkies [Thu, 23 May 2013 10:14:56 +0000 (12:14 +0200)]
do unpacks before configures in SmartConfigure

Splits the big loop over dependencies in SmartConfigure which unpacks and
configures dependencies into two loops and reverse their order, so that all
dependencies which need to be unpacked are handled first and only after that
configures are issued for dependencies.

This is needed as otherwise the unpack of a (new) dependency will be issued
in between a configure call for two (or more) packages which form a loop,
which means the configure calls aren't part of the same dpkg call and
therefore dpkg bails out.

Such tight loops should really be avoided as they are usually wrong – and in
reality the dependencies in libreoffice were greatly simplified thanks to
Rene Engelhard so the problem is gone for the benefit of all.

Closes: 707578

10 years agotry all providers in order if uninstallable in MarkInstall
David Kalnischkies [Tue, 21 May 2013 19:50:30 +0000 (21:50 +0200)]
try all providers in order if uninstallable in MarkInstall

10 years agofix priority sorting by prefering higher in MarkInstall
David Kalnischkies [Tue, 21 May 2013 16:06:17 +0000 (18:06 +0200)]
fix priority sorting by prefering higher in MarkInstall

Used to work until a certain (here unnamed) person came along and used
the wrong operator causing low-priority packages to be sorted above
high-priority packages while choosing a provider in commit
 2b5c35c7bb915dbd46fefd7c79f05364ba22f93b from Nov 2011

10 years agoprefer Essentials over Removals in ordering score
David Kalnischkies [Tue, 21 May 2013 15:10:21 +0000 (17:10 +0200)]
prefer Essentials over Removals in ordering score

Doing Removes early is good to have them out of the way, so they
don't break 'Inst' or 'Conf' chains, but scoring them above Essentials
means that we end up upgrading (many) less important packages before
we handle big stuff like libc6 or debconf which not only fails if those
less important packages have unannounced (strict) dependencies, but also
leads to having these packages unconfigured for a long time triggering
bugs in maintainer scripts for no good reason (#708831).

So this commits sets the default value for remove scores to 100, which
is below the one for essentials (200) and a lot lower than the previous
default value (500).

10 years agorewrite pkgOrderList::DepRemove to stop incorrect immediate setting
David Kalnischkies [Mon, 20 May 2013 22:05:14 +0000 (00:05 +0200)]
rewrite pkgOrderList::DepRemove to stop incorrect immediate setting

Some squeeze → wheezy upgrades indicate that DepRemove runs amok
in complicated setups as it wasn't correctly working with or-groups.
Completely rewritten the check is now moving from or-group to or-group
instead.

The behavior should be the same as the code before, but
(hopefully) with less bugs and more comments.

Closes: 645713

10 years agoremove -ldl from cdrom and -lutil from apt-get linkage
David Kalnischkies [Sun, 19 May 2013 16:53:19 +0000 (18:53 +0200)]
remove -ldl from cdrom and -lutil from apt-get linkage

Building src:apt shows:
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/apt/usr/lib/apt/methods/cdrom was not linked against libdl.so.2
(it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/apt/usr/bin/apt-get was not linked against libutil.so.1 (it uses
none of the library's symbols)

10 years agobuild the en manpages in subdirectory doc/en
David Kalnischkies [Sun, 19 May 2013 13:49:24 +0000 (15:49 +0200)]
build the en manpages in subdirectory doc/en

Building manpages becames more consistent this way and
it is simpler to ignore build artefacts, too.

10 years agostreamline .gitignore further
David Kalnischkies [Sun, 19 May 2013 09:39:44 +0000 (11:39 +0200)]
streamline .gitignore further

adding some comments, regrouping files and use some patterns to avoid
updating the ignore file for new translations or abi changes

Git-Dch: Ignore

10 years agomerged trunk
Michael Vogt [Thu, 6 Jun 2013 17:25:59 +0000 (19:25 +0200)]
merged trunk

10 years agoMerge branch 'debian/sid' of https://github.com/ion1/apt into debian/sid
Michael Vogt [Thu, 6 Jun 2013 17:17:25 +0000 (19:17 +0200)]
Merge branch 'debian/sid' of https://github.com/ion1/apt into debian/sid

10 years agoprepare release
Michael Vogt [Thu, 6 Jun 2013 17:15:52 +0000 (19:15 +0200)]
prepare release

10 years agoFix double free (closes: #711045)
Michael Vogt [Thu, 6 Jun 2013 16:20:35 +0000 (18:20 +0200)]
Fix double free (closes: #711045)

* Fix double free (closes: #711045)

* Fix crash when the "mirror" method does not find any entry
  (closes: #699303)

10 years agofix double free (closes: #711045)
Michael Vogt [Thu, 6 Jun 2013 16:17:14 +0000 (18:17 +0200)]
fix double free (closes: #711045)

11 years agocmdline/apt-key: Accept nonexistent --keyring file with adv as well
Johan Kiviniemi [Wed, 22 May 2013 18:14:33 +0000 (21:14 +0300)]
cmdline/apt-key: Accept nonexistent --keyring file with adv as well

11 years agocmdline/apt-key: Create new keyrings with mode 0644 instead of 0600
Johan Kiviniemi [Wed, 22 May 2013 18:06:26 +0000 (21:06 +0300)]
cmdline/apt-key: Create new keyrings with mode 0644 instead of 0600

11 years ago* buildlib/apti18n.h.in:
Michael Vogt [Thu, 16 May 2013 21:12:37 +0000 (23:12 +0200)]
* buildlib/apti18n.h.in:
  - fix build failure when building without NLS (closes: #671587)

11 years agodebian/gbp.conf: add debian-tag key to ensure git-dch works
Michael Vogt [Thu, 16 May 2013 20:38:21 +0000 (22:38 +0200)]
debian/gbp.conf: add debian-tag key to ensure git-dch works

11 years agoUpdate changelog to include Vcs-* changes
Julian Andres Klode [Thu, 16 May 2013 20:34:04 +0000 (22:34 +0200)]
Update changelog to include Vcs-* changes

11 years agoFrench translation : typo fix. Closes: #677272
Christian PERRIER [Thu, 16 May 2013 20:28:52 +0000 (22:28 +0200)]
French translation : typo fix. Closes: #677272

11 years agoUpdate Vcs fields
Guillem Jover [Thu, 16 May 2013 17:45:25 +0000 (19:45 +0200)]
Update Vcs fields

Use the canonical URLs. Rename Vcs-Bzr to Vcs-Git and use the more
efficient git protocol instead of http. Point Vcs-Browser to the
gitweb interface.

11 years agoadd export-dir and debian-branch 0.9.8.1
Michael Vogt [Thu, 16 May 2013 13:30:23 +0000 (15:30 +0200)]
add export-dir and debian-branch

11 years agoupdate .gitignore
Michael Vogt [Thu, 16 May 2013 13:02:24 +0000 (15:02 +0200)]
update .gitignore

11 years agoprepare upload
Michael Vogt [Thu, 16 May 2013 12:58:56 +0000 (14:58 +0200)]
prepare upload

11 years agomerged previous bzr commit
Michael Vogt [Thu, 16 May 2013 12:31:14 +0000 (14:31 +0200)]
merged previous bzr commit

11 years agomoved to git, updated gbp.conf to match the bzr version
Michael Vogt [Thu, 16 May 2013 12:22:12 +0000 (14:22 +0200)]
moved to git, updated gbp.conf to match the bzr version

11 years agonon-inline RunGPGV methods to restore ABI compatibility with previous versions to...
David Kalnischkies [Sat, 11 May 2013 08:10:07 +0000 (10:10 +0200)]
non-inline RunGPGV methods to restore ABI compatibility with previous versions to fix partial upgrades (Closes: #707771)

The rename in 0.9.7.9~exp2 moved the method body to the class definition
which means it became inline, which isn't ABI compatibile. The reverse of
moving inline to non-inline is safe though.