summaryrefslogtreecommitdiff
path: root/apt-private/private-update.cc
Commit message (Collapse)AuthorAgeFilesLines
* Replace whitelist/blacklist with allowlist/denylistJulian Andres Klode2020-08-041-1/+1
|
* Remove code tagged APT_PKG_590, add some missing includesJulian Andres Klode2020-02-181-0/+1
| | | | | | Remove all code scheduled to be removed after 5.90, and fix files to include files they previously got from hashes.h including more headers.
* Fix name of APT::Update::Post-Invoke-Stats (was ...Update-Post...)Julian Andres Klode2019-03-061-1/+1
| | | | Bad accident. Accidents happen.
* update: Provide APT::Update-Post-Invoke-Stats script hook pointJulian Andres Klode2019-02-131-0/+2
| | | | | | | | This is run after an update has been run and only if status on the new cache has been shown, allowing scripts to display their own status messages. LP: #1815760
* suggest using auth.conf for sources with passwordsDavid Kalnischkies2017-07-261-0/+13
| | | | | | | | The feature exists for a long while even if we get around to document it properly only now, so we should push for its adoption a bit to avoid the problems its supposed to solve like avoiding usage of non-world readable configuration files as they can cause strange behaviour for the unsuspecting user (like different solutions as root and non-root).
* show a warning for Debian shutting down FTP servicesDavid Kalnischkies2017-07-261-0/+26
| | | | | | | | | | | | We detect the effected sources by matching Release info – that has potential by-catch of repositories which have incorrect field values, but those are better fixed now anyhow. The bigger incorrectness is that this message will not only be printed for the Debian services itself but also for all mirrors not under Debian control but serving Debian like more local/private mirrors which will not (directly) shutdown. It is likely through that many of them will follow suite with less visible announcements or break downright if their upstream source disappears, so having false-positives here seems benefitial for the user in the end.
* Reformat and sort all includes with clang-formatJulian Andres Klode2017-07-121-3/+3
| | | | | | | | | | | | | This makes it easier to see which headers includes what. The changes were done by running git grep -l '#\s*include' \ | grep -E '.(cc|h)$' \ | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/' To modify all include lines by adding a space, and then running ./git-clang-format.sh.
* don't lock dpkg in update commandsDavid Kalnischkies2017-01-191-2/+2
| | | | | | | | | | The update command acquires a lock on lists/, but at the end it will also require the dpkg/lock while building the binary caches. That seems rather pointless as we are only reading those files, not causing writing in them. This can also cause problems if a package installation is running and a background process (like cron) starts an update: If you are "lucky" enough the update process will pick the dpkg lock in between apt calls causing the installation process to fail.
* don't show update stats if cache generation is disabledDavid Kalnischkies2017-01-191-6/+6
| | | | | | Unlikely that anyone is actually running into this, but if we asked to not generate a cache and avoid it in the first step we shouldn't create one implicitly anyway by displaying the statistics.
* prevent C++ locale number formatting in text APIsDavid Kalnischkies2016-05-271-2/+2
| | | | | | | | | | | Setting the C++ locale via std::locale::global(std::locale("")); which would otherwise default to the default C locale (aka: unaffected by setlocale) effects the formatting of numeric types in IO streams, which for output for humans is perfectly sensible, but breaks our many text interfaces used and parsed by us and others without expecting the numbers to be formatted. Closes: #825396
* new quiet level -qq for apt to hide progress outputDavid Kalnischkies2015-11-041-8/+7
| | | | | | | | | -q is for logging and -qqq (old -qq) basically kills every output expect errors, so there should be a way of declaring a middleground in which the output of e.g. 'update' isn't as verbose, but still shows some things. The test framework was actually making use of by accident as it ignored the quiet level in output setup for apt before. Eventually we should figure out some better quiet levels for all tools…
* update: Check if the cache could be opened, don't just assume itJulian Andres Klode2015-08-151-1/+2
| | | | | | | | | | This seems to cause Bug#756162, as in that case the depcache was NULL. I'm not entirely sure how that happens, but it's better to be check here rather then crash later on. Closes: #756162
* add a simple unit test for acquire progressDavid Kalnischkies2015-04-101-2/+2
| | | | | | | This isn't testing much of the 'complex' parts, but its better than nothing for now. Git-Dch: Ignore
* ensure partial dirs are 0700 and owned by _apt:rootDavid Kalnischkies2014-10-071-3/+1
| | | | | | | | | Reworks the API involved in creating and setting up the fetcher to be a bit more pleasent to look at and work with as e.g. an empty string for no lock isn't very nice. With the lock we can also stop creating all our partial directories "just in case". This way we can also be a bit more aggressive with the partial directory itself as with a lock, we know we will gone need it.
* generalize Acquire::GzipIndexMichael Vogt2014-09-211-1/+8
|
* Only show packages as upgradable if the have a CandidateVer != 0Michael Vogt2014-07-081-1/+1
| | | | Closes: #753297
* use P_ instead of ngettext to compiling with --disable-nlsFredrik Fornwall2014-06-181-1/+1
| | | | Closes: 751857
* Tell the user if no updates are available after apt updateMichael Vogt2014-06-181-1/+4
| | | | | | Thanks to Jakub Wilk for the suggestion. Closes: #751388
* show upgradable packages after apt updateMichael Vogt2014-05-221-0/+18
| | | | Closes: 748389
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-27/+12
| | | | | | | | Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
* warning: no previous declaration for foobar() [-Wmissing-declarations]David Kalnischkies2014-03-131-0/+1
| | | | | Git-Dch: Ignore Reported-By: gcc -Wmissing-declarations
* Move ListUpdate/AquireUpdate into update.{cc,h}Michael Vogt2013-10-051-0/+1
| | | | | This moves the ListUpdate/AquireUpdate out of the "catch-all" algorithm.{cc,h} file into its own update.{cc,h}
* squash merge of the feature/apt-binary branch without the changes from ↵Michael Vogt2013-08-121-0/+93
experimental