[pacman-dev] [PATCH 1/2] pacman: pacman-conf: removed hputs macro for usage display

2019-09-08 Thread Matthew Sexton
From: Matthew Sexton Using the macro got in the way of _() macro for translation All the macro did was make it so the writer didn't have to type \n", stream); at the end of every line. --- src/pacman/pacman-conf.c | 24 +++- 1 file changed, 11 insertions(+), 13 deletions(-)

[pacman-dev] [PATCH 2/2] pacman: pacman-conf/testpkg: Added translatable strings

2019-09-08 Thread Matthew Sexton
From: Matthew Sexton Added gettext macro to warnings, helps, and errors for translation. --- src/pacman/pacman-conf.c | 44 +++- src/util/testpkg.c | 29 +++--- 2 files changed, 42 insertions(+), 31 deletions(-) diff --git a/src/pacm

[pacman-dev] [PATCH 4/4] pacman: speed up deptest

2019-09-08 Thread morganamilo
Try and find an exact match via pkgcache before iterating the entire localdb. Gives a noticeable speed up for exact matches e.g. `pacman -T zlib` --- Do note this fails for versioned exact matches. "zlib>1" will not take the faster route because alpm_db_get_pkgfromcache() does not work for versi

[pacman-dev] [PATCH 1/4] libalpm: fix incorrect documentation

2019-09-08 Thread morganamilo
--- lib/libalpm/deps.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 71185c68..ce7869c3 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -643,10 +643,9 @@ int _alpm_recursedeps(alpm_db_t *db, alpm_list_t **

[pacman-dev] [PATCH 3/4] libalpm: short circuit alpm_find_dbs_satisfier

2019-09-08 Thread morganamilo
when a satisfying package is already installed, we always pick it instead of prompting the user. So we can return that package as soon as we find it, instead of waiting until we've iterated through all the databases. --- lib/libalpm/deps.c | 15 +++ 1 file changed, 7 insertions(+), 8 d

[pacman-dev] [PATCH 2/4] libalpm: resolvedep(): don't compare names twice

2019-09-08 Thread morganamilo
If we failed to get the pkg from pkgcache then we know no satisfying package exists by name. So only compare provides. --- lib/libalpm/deps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index ce7869c3..322c4e7e 100644 --- a/lib/liba