apply a very simple speed-up in case we try to set the candidate version
of a package to the version which is already the candidate
(apt-get does that for all packages it installs for simplicity)
* apt-pkg/algorithms.cc:
- mark all installed packages first without auto installation in
a dist-upgrade to prefer upgrading packages instead of installing
new packages in versioned or-groups (Closes: #605394)
Michael Vogt [Thu, 18 Nov 2010 08:25:29 +0000 (09:25 +0100)]
* cmdline/acqprogress.cc:
- don't ask the user for media change if quiet >= 2, stdout is not
a tty and assume-yes, force-yes or trivial-only option is set to
avoid cpu eating endless loops in unattended runs like apt.cron
(Closes: #602354, LP: #665580)
Martin Pitt [Mon, 15 Nov 2010 09:41:12 +0000 (10:41 +0100)]
* test/integration/test-compressed-indexes, test/test-indexes.sh:
- Explicitly disable compressed indexes at the start. This ensures that we
will actually test uncompressed indexes regardless of the internal
default value of Acquire::GzipIndexes.
* cmdline/acqprogress.cc:
- don't ask the user for media change if quiet >= 2, stdout is not
a tty and assume-yes, force-yes or trivial-only option is set to
avoid cpu eating endless loops in unattended runs like apt.cron
(Closes: #602354, LP: #665580)
* apt-pkg/contrib/fileutl.cc:
- Add a FileFd::FileSize() method to get the size of the underlying
file and not the size of the content in the file as FileFd::Size()
does - the sizes can differ since the direct gzip integration
* methods/{gzip,bzip2}.cc:
- use FileSize() to determine if the file is invalid (Closes: #600852)
* doc/apt.ent:
- move some strings into apt-verbatim.ent to avoid showing them in
apt-doc.pot as they are untranslatable anyway (e.g. manpage references)
Michael Vogt [Wed, 13 Oct 2010 13:33:16 +0000 (15:33 +0200)]
* apt-pkg/deb/debindexfile.cc:
- Use FileFd::Size() instead of stat()ing the sources/binary/translations
indexes directly, so that we have transparent handling of gzipped
indexes.
* apt-pkg/contrib/fileutl.cc:
- Fix FileFd::Size() for gzipped files to give the size of the
uncompressed data. This fixes cache building progress going way
over 100%.
Michael Vogt [Wed, 13 Oct 2010 11:38:13 +0000 (13:38 +0200)]
* debian/apt.cron.daily:
- source /etc/default/locale (if available) so that the
apt-get update cron job fetches the right translated package
descriptions
* fix test failure on amd64
Martin Pitt [Wed, 13 Oct 2010 11:00:49 +0000 (13:00 +0200)]
* apt-pkg/contrib/fileutl.cc:
- Fix FileFd::Size() for gzipped files to give the size of the
uncompressed data. This fixes cache progress building progress going way
over 100%.
Martin Pitt [Wed, 13 Oct 2010 10:45:47 +0000 (12:45 +0200)]
* apt-pkg/deb/debindexfile.cc:
- Use FileFd::Size() instead of stat()ing the sources/binary/translations
indexes directly, so that we have transparent handling of gzipped
indexes.
* apt-pkg/depcache.cc:
- do not remove packages which the user requested for installation
explicitly while satisfying other install requests (Closes: #598669)
Michael Vogt [Fri, 1 Oct 2010 12:36:31 +0000 (14:36 +0200)]
* debian/apt.cron.daily:
- source /etc/default/locale (if available) so that the
apt-get update cron job fetches the right translated package
descriptions
* apt-pkg/depcache.cc:
- do not check endpointer packages instead of only those which prevented
NeverAutoRemove settings from having an effect (Closes: #598452)
* cmdline/apt-cache.cc:
- use the TranslatedDescription for searching and not the first
available one as it is maybe not an expected language (Closes: #597925)
* debian/apt.cron.daily:
- handle absolut directory paths correctly by loading directories
directly instead of building the paths on our own (Closes: #596421)
* apt-pkg/policy.cc:
- support 100-pinning in Release file with ButAutomaticUpgrades
as requested by the backports crew (Closes: #596097)
* apt-pkg/deb/deblistparser.cc:
- overrule NotAutomatic in case of ButAutomaticUpgrades
Michael Vogt [Fri, 10 Sep 2010 10:21:06 +0000 (12:21 +0200)]
* apt-pkg/contrib/cdromutl.cc:
- if apt-cdrom is used on writable media (like usb-sticks), do
not use the root directory to identify the medium (as all
changes there change the ident id). Use the .disk directory
instead
Michael Vogt [Thu, 9 Sep 2010 17:04:26 +0000 (19:04 +0200)]
* ftparchive/writer.cc:
- null the valid string instead of the date if Valid-Until is not set
* apt-pkg/acquire-item.cc:
- use also unsigned Release files again (Closes: #596189)
Michael Vogt [Tue, 7 Sep 2010 08:02:59 +0000 (10:02 +0200)]
* apt-pkg/indexcopy.cc:
- only use trusted.gpg.d directory if it exists
- do not replace /dev/null when running in APT::CDROM::NoAct
mode (LP: #612666), thanks to Colin Watson