* apt-pkg/contrib/fileutl.cc:
- add a RealFileExists method and check that your configuration files
are real files to avoid endless loops if not (Closes: #604401)
check in the DepCache::SetCandidateVersion that the package is marked to
be installed before setting the InstallVer as otherwise the Sizes states
will be confused in some cases - this can happen now as SetCandidateRelease
works also on packages which are not installed now (or will never in the
final solution)
* apt-pkg/depcache.cc:
- add SetCandidateRelease() to set a candidate version and
the candidates of dependencies if needed to a specified
release (Closes: #572709)
- change pkg/release behavior to use the new SetCandidateRelease
so installing packages from experimental or backports is easier
add the possibility to disable only the progress reporting stuff as the
quiet level 1 does this, but also disables other stuff we might want to
test against in a testcase
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)