[pacman-dev] [PATCH] Clarify "assume installed" error message

Allan McRae allan at archlinux.org
Sat Dec 27 10:15:52 UTC 2014


The error message on failing to add an "assume installed" entry to the backend
was not clear.  Clarify by making "assume-installed" none translatable and
adding a hyphen to match calling flag.

Signed-off-by: Allan McRae <allan at archlinux.org>
---
 src/pacman/conf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index 7ffc4d5..65349f5 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -754,7 +754,7 @@ static int setup_libalpm(void)
 
 		ret = alpm_option_add_assumeinstalled(handle, dep);
 		if(ret) {
-			pm_printf(ALPM_LOG_ERROR, _("Failed to pass assume installed entry to libalpm"));
+			pm_printf(ALPM_LOG_ERROR, _("Failed to pass %s entry to libalpm"), "assume-installed");
 			alpm_dep_free(dep);
 			return ret;
 		}
-- 
2.2.1


More information about the pacman-dev mailing list