]> git.saurik.com Git - apt.git/log
apt.git
10 years agopackages in the cache are sorted by name so noise-free
David Kalnischkies [Thu, 19 Jun 2014 10:23:10 +0000 (12:23 +0200)] 
packages in the cache are sorted by name so noise-free

Commit aa0fe657e46b87cc692895a36df12e8b74bb27bb sorts the package names
in the hashtable. We make use of this already in these functions, but as
a minor sideeffect it also means that we don't have 'noise' anymore
between packages belonging to the same group. We therefore don't need to
check for a matching name in Grp.FindPkg anymore.

Git-Dch: Ignore

10 years agosearch for pkg names in the cache case-sensitive
David Kalnischkies [Thu, 19 Jun 2014 09:59:41 +0000 (11:59 +0200)] 
search for pkg names in the cache case-sensitive

Package names have to be lowercase (debian-policy §5.6.1) and in as
lowlevel as these method are it would be quiet strange to treat an
invalid package "suddently" as a valid one which other tools might or
might not accept. If case-insensitivity is really needed the frontend
should ensure this rather than these methods waste cpu cycles by
default.

Git-Dch: Ignore

10 years agodeprecate Pkg->Name in favor of Grp->Name
David Kalnischkies [Thu, 19 Jun 2014 09:00:02 +0000 (11:00 +0200)] 
deprecate Pkg->Name in favor of Grp->Name

They both store the same information, so this field just takes up space
in the Package struct for no good reason. We mark it "just" as deprecated
instead of instantly removing it though as it isn't misleading like
Section was and is potentially used in the wild more often.

10 years agoDisable Mth.DropPrivsOrDie() in copy.cc for now
Michael Vogt [Fri, 26 Sep 2014 15:50:18 +0000 (17:50 +0200)] 
Disable Mth.DropPrivsOrDie() in copy.cc for now

Dch-Ignore: true

10 years agoRemove check for "Translation-" from pkgAcqIndex::Custom600Headers()
Michael Vogt [Thu, 25 Sep 2014 10:26:22 +0000 (12:26 +0200)] 
Remove check for "Translation-" from pkgAcqIndex::Custom600Headers()

This unneeded because pkgAcqIndexTrans has its own Custom600Headers()
method.

10 years agoRevert making pkgAcquire::Item::DescURI() "const"
Michael Vogt [Thu, 25 Sep 2014 09:49:16 +0000 (11:49 +0200)] 
Revert making pkgAcquire::Item::DescURI() "const"

Revert because its a API change and the gain does not justify the
extra work to make the required changes in the consumers of this
interface at this point.

10 years agoUse /var/empty as the homedir for _apt
Michael Vogt [Thu, 25 Sep 2014 09:39:16 +0000 (11:39 +0200)] 
Use /var/empty as the homedir for _apt

Thanks to Axel Beckert

10 years agoreleasing package apt version 1.1~exp3
Michael Vogt [Wed, 24 Sep 2014 18:14:55 +0000 (20:14 +0200)] 
releasing package apt version 1.1~exp3

10 years agoDropPrivs: Document what it does
Julian Andres Klode [Wed, 24 Sep 2014 20:28:44 +0000 (22:28 +0200)] 
DropPrivs: Document what it does

Git-Dch: ignore

10 years agoDropPrivs: Use APT::Sandbox::User instead of Apt::User::Nobody
Julian Andres Klode [Wed, 24 Sep 2014 20:26:41 +0000 (22:26 +0200)] 
DropPrivs: Use APT::Sandbox::User instead of Apt::User::Nobody

Git-Dch: ignore

10 years agoDropPrivs: Hard-fail if the user does not exist
Julian Andres Klode [Wed, 24 Sep 2014 20:07:27 +0000 (22:07 +0200)] 
DropPrivs: Hard-fail if the user does not exist

Git-Dch: ignore

10 years agoDropPrivs: Add some comments for the more obscure setuid/setgid functions
Julian Andres Klode [Wed, 24 Sep 2014 20:00:33 +0000 (22:00 +0200)] 
DropPrivs: Add some comments for the more obscure setuid/setgid functions

Git-Dch: ignore

10 years agoDropPrivs: Move the re-set uid/gid thing to the end of the function
Julian Andres Klode [Wed, 24 Sep 2014 19:53:45 +0000 (21:53 +0200)] 
DropPrivs: Move the re-set uid/gid thing to the end of the function

Git-Dch: ignore

10 years agomethods: Fail if we cannot drop privileges
Julian Andres Klode [Wed, 24 Sep 2014 19:49:19 +0000 (21:49 +0200)] 
methods: Fail if we cannot drop privileges

10 years agoDropPrivs: Improve comments
Julian Andres Klode [Wed, 24 Sep 2014 18:59:53 +0000 (20:59 +0200)] 
DropPrivs: Improve comments

Git-Dch: ignore

10 years agoDropPrivs: Also check for saved set-user-ID and set-group-ID
Julian Andres Klode [Wed, 24 Sep 2014 18:57:30 +0000 (20:57 +0200)] 
DropPrivs: Also check for saved set-user-ID and set-group-ID

10 years agoDropPrivs: Do not use an invalid return check for setgroups()
Julian Andres Klode [Wed, 24 Sep 2014 18:02:54 +0000 (20:02 +0200)] 
DropPrivs: Do not use an invalid return check for setgroups()

setgroups() returns 0 on success

Git-Dch: ignore

10 years agoUse _apt as our unprivileged user name
Julian Andres Klode [Wed, 24 Sep 2014 15:29:53 +0000 (17:29 +0200)] 
Use _apt as our unprivileged user name

Some people want to standardize on it, and BSDs do it too, so let's
do the same.

Reported-by: Paul Wise <pabs@debian.org>
10 years agoDropPriv: Really call seteuid and not setuid, and add more checks
Julian Andres Klode [Wed, 24 Sep 2014 14:47:55 +0000 (16:47 +0200)] 
DropPriv: Really call seteuid and not setuid, and add more checks

The only thing we are missing is non-portable saved ids support.

10 years agoDrop Privileges to "Debian-apt" in most acquire methods
Michael Vogt [Wed, 24 Sep 2014 14:22:05 +0000 (16:22 +0200)] 
Drop Privileges to "Debian-apt" in most acquire methods

Add a new "Debian-apt" user that owns the /var/lib/apt/lists
and /var/cache/apt/archive directories. The methods
http, https, ftp, gpgv, gzip switch to this user when they
start.

Thanks to Julian and "ioerror" and tors "switch_id()" code.

10 years agofix tests
Michael Vogt [Tue, 23 Sep 2014 12:57:10 +0000 (14:57 +0200)] 
fix tests

10 years agoMerge branch 'debian/sid' into debian/experimental
Michael Vogt [Tue, 23 Sep 2014 12:20:27 +0000 (14:20 +0200)] 
Merge branch 'debian/sid' into debian/experimental

Conflicts:
apt-pkg/acquire-item.cc
apt-pkg/acquire-item.h
apt-pkg/cachefilter.h
configure.ac
debian/changelog

10 years agoEnsure that iTFRewritePackageOrder is "MD5sum" to match apt-ftparchive
Michael Vogt [Sun, 21 Sep 2014 19:40:10 +0000 (21:40 +0200)] 
Ensure that iTFRewritePackageOrder is "MD5sum" to match apt-ftparchive

The iTFRewritePackageOrder is used in indexcopy to copy and normalize
cdrom Packages files. This change will ensure that there is no
"normalization" that changes MD5sum -> MD5Sum which alters the hash
of the Packages file on disk (oh the irony).

10 years agoFix regression for cdrom: sources from latest security update
Michael Vogt [Sun, 21 Sep 2014 19:23:04 +0000 (21:23 +0200)] 
Fix regression for cdrom: sources from latest security update

Skip a reverify for cdrom: sources. The reverify step is actually
harmful here because the apt-cdrom add code uses the indexcopy.cc
which will "normalize" the Packages file from the cdrom when it
writes it to the local disk. This leads to changing the "MD5sum"
field (notice the lower case "s") on the cdrom Packages file to
a "MD5Sum" field on the local file in /var/lib/apt/lists. Which
of course alters the hash and makes apt fail to reverify the file.

10 years agorelax grep to support newer curl output format
David Kalnischkies [Fri, 19 Sep 2014 22:12:13 +0000 (00:12 +0200)] 
relax grep to support newer curl output format

Git-Dch: Ignore

10 years agodisable timestamps in the footer of docs by doxygen
Jérémy Bobbio [Fri, 19 Sep 2014 21:03:55 +0000 (23:03 +0200)] 
disable timestamps in the footer of docs by doxygen

The default being 'yes', but this spoils the effort of reproducible
builds for no real gain. (https://wiki.debian.org/ReproducibleBuilds)

10 years agoGerman program translation update
Holger Wansing [Fri, 19 Sep 2014 20:32:14 +0000 (22:32 +0200)] 
German program translation update

Closes: 762223
10 years agoFix regression when copy: is used for a relative path
Michael Vogt [Fri, 19 Sep 2014 14:41:55 +0000 (16:41 +0200)] 
Fix regression when copy: is used for a relative path

When we do a ReverifyAfterIMS() we use the copy: method to
verify the hashes again. If the user uses -o Dir=./something/relative
this fails because we use the URI class in copy.cc that strips
away the leading relative part. By not using URI this is fixed.

Closes: #762160
10 years agotest/integration/test-apt-update-file: improve test
Michael Vogt [Fri, 19 Sep 2014 14:41:50 +0000 (16:41 +0200)] 
test/integration/test-apt-update-file: improve test

10 years ago./pre-release pre-export
Michael Vogt [Thu, 18 Sep 2014 05:59:01 +0000 (07:59 +0200)] 
./pre-release pre-export

10 years agoreleasing package apt version 1.0.9.1 1.0.9.1
Michael Vogt [Wed, 17 Sep 2014 20:05:51 +0000 (22:05 +0200)] 
releasing package apt version 1.0.9.1

10 years agoMerge remote-tracking branch 'vnwildman/debian/sid' into debian/sid
Michael Vogt [Wed, 17 Sep 2014 20:04:30 +0000 (22:04 +0200)] 
Merge remote-tracking branch 'vnwildman/debian/sid' into debian/sid

10 years agoimprove test for commit daff4a
Michael Vogt [Wed, 17 Sep 2014 15:48:27 +0000 (17:48 +0200)] 
improve test for commit daff4a

10 years agoFix regression for file:/// uris from CVE-2014-0487
Michael Vogt [Wed, 17 Sep 2014 12:57:05 +0000 (14:57 +0200)] 
Fix regression for file:/// uris from CVE-2014-0487

Do not run ReverifyAfterIMS() for local file URIs as this will
causes apt to mess around in the file:/// uri space. This is
wrong in itself, but it will also cause a incorrect verification
failure when the archive and the lists directory are on different
partitions as rename().

10 years agoprepare 1.0.9.1
Michael Vogt [Tue, 16 Sep 2014 18:53:35 +0000 (20:53 +0200)] 
prepare 1.0.9.1

10 years agomerge previous upload
Michael Vogt [Tue, 16 Sep 2014 18:51:19 +0000 (20:51 +0200)] 
merge previous upload

10 years agoSECURITY UPDATE for CVE-2014-{0488,0487,0489}
Michael Vogt [Tue, 16 Sep 2014 18:23:43 +0000 (20:23 +0200)] 
SECURITY UPDATE for CVE-2014-{0488,0487,0489}

incorrect invalidating of unauthenticated data (CVE-2014-0488)
incorect verification of 304 reply (CVE-2014-0487)
incorrect verification of Acquire::Gzip indexes (CVE-2014-0489)

10 years agoadd a 'coverage' command to generate reports
David Kalnischkies [Sun, 14 Sep 2014 20:48:01 +0000 (22:48 +0200)] 
add a 'coverage' command to generate reports

Builds, runs and generates everything needed to have a coverage report
at the end for apt. The report isn't perfect as most childs apt forks do
not have a regular exit and so data is never written for them, which
results in e.g. most methods to have zero coverage reported.

Git-Dch: Ignore

10 years agoTurkish program translation update
Mert Dirik [Sun, 14 Sep 2014 21:04:03 +0000 (23:04 +0200)] 
Turkish program translation update

Closes: 761394
10 years agoUpdated German documentation translation
Chris Leick [Sun, 14 Sep 2014 12:48:10 +0000 (14:48 +0200)] 
Updated German documentation translation

10 years agol10n: vi.po (636t): Update program translation
Trần Ngọc Quân [Fri, 12 Sep 2014 07:13:36 +0000 (14:13 +0700)] 
l10n: vi.po (636t): Update program translation

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>
10 years agoAllow override of Proxy-Auto-Detect by the users configuration
Michael Vogt [Fri, 12 Sep 2014 09:44:11 +0000 (11:44 +0200)] 
Allow override of Proxy-Auto-Detect by the users configuration

Only run the Proxy-Auto-Detect code if there is not already
a host specific configuration.

Closes: 759264
10 years agoprepare 1.0.8 1.0.8
Michael Vogt [Tue, 9 Sep 2014 18:10:41 +0000 (20:10 +0200)] 
prepare 1.0.8

10 years agodebian/gbp.conf: use export-dir
Michael Vogt [Tue, 9 Sep 2014 18:50:34 +0000 (20:50 +0200)] 
debian/gbp.conf: use export-dir

10 years agodon't call pager in non-terminals for changelog
David Kalnischkies [Tue, 9 Sep 2014 11:52:32 +0000 (13:52 +0200)] 
don't call pager in non-terminals for changelog

Most pagers are nice and default to running non-interactively if they
aren't connected to a terminal and we relied on that. On ci.debian.net
the configured pager is printing a header out of nowhere though, so if
we are printing to a non-terminal we call "cat" instead.

In the rework we also "remove" the dependency on sensible-utils in sofar
as we call some alternatives if calling the utils fail.

This seems to be the last problem preventing a "PASS" status on
ci.debian.net, so we close the associated bugreport.

Closes: 755040
10 years agorework PTY magic to fix stair-stepping on kfreebsd
David Kalnischkies [Mon, 8 Sep 2014 19:05:11 +0000 (21:05 +0200)] 
rework PTY magic to fix stair-stepping on kfreebsd

A pty slave we have got from openpty can only be used for one dpkg
child, if we give it to a second child on kfreebsd setting TIOCSCTTY
fails causing the output to be stair-stepped from now on.

By switching the code to creating a master and opening a new slave in
the child for each child we can fix this glitch, so that at least the
master remains stable.

Closes: 759684
10 years agofix progress report for upgrade and reinstall
David Kalnischkies [Mon, 8 Sep 2014 15:14:17 +0000 (17:14 +0200)] 
fix progress report for upgrade and reinstall

APT treats upgrades like installs and dpkg is very similar in this, but
prints still a slightly different processing message indicating that it
is really an upgrade which we hadn't parsed so far, but this wasn't
really visible as we quickly moved on to a 'known' state.

More problematic was the reinstall case as apt hadn't recognized this
for the package name detection, so that reinstalls had no progress since
we introduced MultiArch.

10 years agofix and non-silent fail dpkg-overwrite error test
David Kalnischkies [Sun, 7 Sep 2014 20:08:01 +0000 (22:08 +0200)] 
fix and non-silent fail dpkg-overwrite error test

Commit cbcdd3ee9d86379d1b3a44e41ae8b17dc23111d0 removes the space at the
end of the debfile name dpkg send to us and we previously had included
in the pmerror message we printed on the statusfd.

Git-Dch: Ignore

10 years agostrip everything spacey in APT::String::Strip
David Kalnischkies [Sun, 7 Sep 2014 19:27:57 +0000 (21:27 +0200)] 
strip everything spacey in APT::String::Strip

Git-Dch: Ignore

10 years agodetect terminal output with 'test -t' in tests
David Kalnischkies [Sun, 7 Sep 2014 17:30:33 +0000 (19:30 +0200)] 
detect terminal output with 'test -t' in tests

Instead of trying to inspect /proc and the fds inside we use "test -t 1"
instead as this is available and working on kfreebsd as well – not that
something breaks if we wouldn't, but we like color.

Git-Dch: Ignore

10 years agodo use an 'unknown' arch-specification in test
David Kalnischkies [Sun, 7 Sep 2014 17:28:21 +0000 (19:28 +0200)] 
do use an 'unknown' arch-specification in test

Using 'kfreebsd' here makes the test fail on a kfreebsd system
(obviously), so we just use something totally madeup in the hope that
this is less like to conflict in the future.

Git-Dch: Ignore

10 years agomake GetLocalitySortedVersionSet more generic
David Kalnischkies [Tue, 2 Sep 2014 16:20:49 +0000 (18:20 +0200)] 
make GetLocalitySortedVersionSet more generic

No reason in and of by itself at the moment, but prepares for the goal
of having 'apt search' and 'apt-cache search' using the same code now
that they at least support the same stuff. The 'apt' code is just a
multitude slower at the moment…

Git-Dch: Ignore

10 years agoimplement --full in apt search
David Kalnischkies [Tue, 2 Sep 2014 12:32:48 +0000 (14:32 +0200)] 
implement --full in apt search

10 years agouse a format string in ListSingleVersion
David Kalnischkies [Mon, 1 Sep 2014 19:43:15 +0000 (21:43 +0200)] 
use a format string in ListSingleVersion

The method already deals with a format string, but had an else path
doing a hardcoded format as well. This is changed now to use the same
code for both - the format in the second case is still fixed though.

Git-Dch: Ignore

10 years agoskip version if we already have this package as search-result
David Kalnischkies [Mon, 1 Sep 2014 17:09:40 +0000 (19:09 +0200)] 
skip version if we already have this package as search-result

Git-Dch: Ignore

10 years agosupport regular expressions in 'apt search'
David Kalnischkies [Sat, 30 Aug 2014 09:29:45 +0000 (11:29 +0200)] 
support regular expressions in 'apt search'

apt-cache search supported this since ever and in the code for apt was a
fixme indicating this should be added here as well, so here we go.

10 years agoImprove Debug::Acquire::http debug output
Michael Vogt [Fri, 5 Sep 2014 14:24:32 +0000 (16:24 +0200)] 
Improve Debug::Acquire::http debug output

Prefix all answers with the URL that the answer is for. This
helps when debugging and pipeline is enabled.

10 years agoMerge branch 'debian/sid' into debian/experimental
Michael Vogt [Fri, 5 Sep 2014 12:41:54 +0000 (14:41 +0200)] 
Merge branch 'debian/sid' into debian/experimental

Conflicts:
apt-pkg/acquire-item.cc
configure.ac
debian/changelog
doc/apt-verbatim.ent
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/pt.po
po/ar.po
po/ast.po
po/bg.po
po/bs.po
po/ca.po
po/cs.po
po/cy.po
po/da.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/mr.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/vi.po
po/zh_CN.po
po/zh_TW.po
test/integration/test-ubuntu-bug-346386-apt-get-update-paywall

10 years agoEnsure we have a Policy in CacheFile.BuildDepCache()
Michael Vogt [Fri, 5 Sep 2014 10:50:15 +0000 (12:50 +0200)] 
Ensure we have a Policy in CacheFile.BuildDepCache()

This partly reverts d059cc2 and fixes bug #753297 in a more
general way by ensuring that CacheFile.BuildDepCache() builds
a pkgPolicy if there isn't one already.

10 years agoFix incorrect upgradable listing in "apt list" (thanks to Michael Musenbrock)
Michael Vogt [Fri, 5 Sep 2014 10:03:28 +0000 (12:03 +0200)] 
Fix incorrect upgradable listing in "apt list" (thanks to Michael Musenbrock)

The "apt list" command was using only the pkgDepCache but not the
pkgPolicy to figure out if a package is upgradable. This lead to
incorrect display of upgradable package when the user used the
policy to pin-down packages. Thanks to Michael Musenbrock for the
initial patch.

Closes: #753297
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