`len` returns 0 if the slice or map is nil. From the Go specification
[1]:
"1. For a nil slice, the number of iterations is 0."
"3. If the map is nil, the number of iterations is 0."
Therefore, an additional `len(v) != 0` check for before the loop is
unnecessary.
[1]: https://go.dev/ref/spec#For_range
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* feat(install): add --nocleanbuild to keep pkg/ and src/ directories for
AUR packages
Providing this flag during installation of AUR packages allows for keeping
the src/ and pkg/ directories produced my makepkg. If the user wants to
delete the directories, they can either select to cleanBuild in the
cleanmenu or run the installation without the --nocleanbuild flag (yay
will only remove the directories if the package is rebuilt)
* fix(completion): simplify description for --nocleanbuild in fish
This makes the description consistent with the descriptions in the
man page, --help, and zsh completion.
* refactor(install): Rename --nocleanbuild to --keepsrc
This naming scheme is more familiar to users since it is the name of the
flag in Paru.
---------
Co-authored-by: jguer <me@jguer.space>
Translate po/en.po in he
100% translated source file: 'po/en.po'
on 'he'.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
* rework relationship between runtime and cfg
* separate runtime from cfg
* simplify instantiation logic
* move installer to appropriate package
* move operator to sync package
* add tests for srcinfo service
* consolidate srcinfo service in sync
* add logger to srcinfo
* add logger to preparer
* remove unused text functions
* remove remaining text.* from srcinfo
* remove global logger parts
* remove global org method exports
* remove global logger
* move text->input
* add rule to prevent fmt.Print
* update golangci go version
* remove outdated FAQs
* remove outdated FAQs
* fix(menus): Handle Installed and NotInstalled options correctly in the
menus
This functionality was temporarily removed. This commit adds that
functionality back.
* fix(tests): Mock InstalledRemotePackageNamesFn when necessary
* Fix handling targets with specified db
Handle it in a similar way to handling targets with unspecified db.
Also refactored GraphSyncPkg method to make stuff more DRY.
* update go-mod
Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in id
100% translated source file: 'po/en.po'
on 'id'.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in es
100% translated source file: 'po/en.po'
on 'es'.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in ca
100% translated source file: 'po/en.po'
on 'ca'.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
* Fix excluding of packages with unsatisfied deps
When dependency is unsatisfied, add to the graph not only a dep node,
but relationship with parent too.
* Remove excess(duplicate) logic
* Add test cases of upgrading with unsatisfied deps
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
* Translate po/en.po in ko
100% translated source file: 'po/en.po'
on 'ko'.
---------
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Translate po/en.po in es
100% translated source file: 'po/en.po'
on the 'es' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
Redundant attempts took place when the installation by pacman was
exited with code 1, i.e. an real error occurred or installation
was simply cancelled.
Before this fix dependencies for AUR targets were added to the graph
after each addition of a target node. Now dependencies are added only
after all target nodes are added to the graph.
Also added some tests for previously bugged cases.
Translate po/en.po in id
100% translated source file: 'po/en.po'
on the 'id' language.
Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>