commit:     bafe11f5e8beb6ee1fe5e344aba517a22bc0cf9f
Author:     Joakim Tjernlund <joakim.tjernlund <AT> infinera <DOT> com>
AuthorDate: Tue Aug 11 14:45:21 2020 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Aug 14 09:35:21 2020 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=bafe11f5

qmerge: Impl. best_version()

Signed-off-by: Joakim Tjernlund <joakim.tjernlund <AT> infinera.com>
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 qmerge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qmerge.c b/qmerge.c
index 80c34a0..2b1d082 100644
--- a/qmerge.c
+++ b/qmerge.c
@@ -651,7 +651,7 @@ pkg_run_func_at(int dirfd, const char *vdb_path, const char 
*phases, const char
                "debug-print-section() { :; }\n"
                /* Not quite right */
                "has_version() { [ -n \"$(qlist -ICqe \"$1\")\" ]; }\n"
-               /* best_version() */
+               "best_version() { qlist -ICqev \"$1\" }\n"
                "use() { useq \"$@\"; }\n"
                "usex() { useq \"$1\" && echo \"${2-yes}$4\" || echo 
\"${3-no}$5\"; }\n"
                "useq() { hasq \"$1\" ${USE}; }\n"

Reply via email to