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(-)
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
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
---
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 **
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
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