If you answer yes to
:: Do you want to remove all other AUR packages from cache? [Y/n]
then we run cleanAUR(), intending to remove subdirectories of
~/.cache/yay that do not share a name with installed packages not
found in the sync repositories.
Where this was going wrong was cleanAUR() was getting an empty map from
dbExecutor.InstalledRemotePackages()---because InstalledRemotePackages
only recomputes its result if installedRemotePkgMap is nil, whereas
NewExecutor initialized it to an empty map. The symptom was it emptied
my ~/.cache/yay.
We do want a non-nil, empty installedRemotePkgMap to block recomputing
(that is, to indicate the user really has no remote packages), so now
NewExecutor initializes it to nil, and getPackageNamesBySource is
responsible for making sure it's non-nil before writing to it.
Fixes#2152, which seems to have been introduced in
4626a0409c.
Fix -Qu exit code for empty update lists (#2061)
Previously, -Qun and -Qum without available updates could exit
with code 0 in some cases.
Also fix present and add more tests for such cases.
Translate po/en.po in fr_FR
100% translated for the source file 'po/en.po'
on the 'fr_FR' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in es
100% translated for the source file 'po/en.po'
on the 'es' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
* switch the TZ to UTC temporarily for running the tests
* Remove unnecessary environment reset
* Set test specific environment.
Co-authored-by: Jo <me@jguer.space>
---------
Co-authored-by: Jo <me@jguer.space>
Translate po/en.po in pt
100% translated for the source file 'po/en.po'
on the 'pt' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in cs
100% translated for the source file 'po/en.po'
on the 'cs' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in zh_TW
100% translated for the source file 'po/en.po'
on the 'zh_TW' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in it_IT
100% translated for the source file 'po/en.po'
on the 'it_IT' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
* Translate po/en.po in de
100% translated for the source file 'po/en.po'
on the 'de' language.
* Translate po/en.po in de
100% translated for the source file 'po/en.po'
on the 'de' language.
* Translate po/en.po in de
100% translated for the source file 'po/en.po'
on the 'de' language.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
* Translate po/en.po in ko
100% translated for the source file 'po/en.po'
on the 'ko' language.
* Translate po/en.po in ko
100% translated for the source file 'po/en.po'
on the 'ko' language.
* Translate po/en.po in ko
100% translated for the source file 'po/en.po'
on the 'ko' language.
* Translate po/en.po in ko
100% translated for the source file 'po/en.po'
on the 'ko' language.
* Translate po/en.po in ko
100% translated for the source file 'po/en.po'
on the 'ko' language.
* Translate po/en.po in ko
100% translated for the source file 'po/en.po'
on the 'ko' language.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
* Translate po/en.po in ca
100% translated for the source file 'po/en.po'
on the 'ca' language.
* Translate po/en.po in ca
100% translated for the source file 'po/en.po'
on the 'ca' language.
* Translate po/en.po in ca
100% translated for the source file 'po/en.po'
on the 'ca' language.
* Translate po/en.po in ca
100% translated for the source file 'po/en.po'
on the 'ca' language.
* Translate po/en.po in ca
100% translated for the source file 'po/en.po'
on the 'ca' language.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in id
100% translated for the source file 'po/en.po'
on the 'id' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in pt
100% translated for the source file 'po/en.po'
on the 'pt' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
* Translate po/en.po in tr
100% translated for the source file 'po/en.po'
on the 'tr' language.
* Translate po/en.po in tr
100% translated for the source file 'po/en.po'
on the 'tr' language.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
* Translate po/en.po in it_IT
100% translated for the source file 'po/en.po'
on the 'it_IT' language.
* Translate po/en.po in it_IT
100% translated for the source file 'po/en.po'
on the 'it_IT' language.
* Translate po/en.po in it_IT
100% translated for the source file 'po/en.po'
on the 'it_IT' language.
* Translate po/en.po in it_IT
100% translated for the source file 'po/en.po'
on the 'it_IT' language.
* Translate po/en.po in it_IT
100% translated for the source file 'po/en.po'
on the 'it_IT' language.
* Translate po/en.po in it_IT
100% translated for the source file 'po/en.po'
on the 'it_IT' language.
* Translate po/en.po in it_IT
100% translated for the source file 'po/en.po'
on the 'it_IT' language.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
* Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in pt
100% translated for the source file 'po/en.po'
on the 'pt' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in it_IT
100% translated for the source file 'po/en.po'
on the 'it_IT' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in sv
100% translated for the source file 'po/en.po'
on the 'sv' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in id
100% translated for the source file 'po/en.po'
on the 'id' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>