Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=01e5f0fe6baeb3be638e1ad820ee3c803ce87821

commit 01e5f0fe6baeb3be638e1ad820ee3c803ce87821
Author: crazy <cr...@frugalware.org>
Date:   Fri Feb 19 19:34:37 2010 +0100

src/pacman-g2/sync.c: make -Sg return a error when the 'group' is not found .. 
just like -Qg does

diff --git a/src/pacman-g2/sync.c b/src/pacman-g2/sync.c
index d25ed6b..ab5f764 100644
--- a/src/pacman-g2/sync.c
+++ b/src/pacman-g2/sync.c
@@ -131,6 +131,9 @@ static int sync_group(int level, list_t *syncs, list_t 
*targets)
if(grp) {
MSG(NL, "%s\n", (char *)pacman_grp_getinfo(grp, PM_GRP_NAME));
PM_LIST_display("   ", pacman_grp_getinfo(grp, PM_GRP_PKGNAMES));
+                               } else {
+                                       ERR(NL, _("group \"%s\" was not 
found\n"), (char *)i->data);
+                                       return(1);
}
}
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to