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

commit 4c1c9dce85feacbfc6535fdc039319f46465c8ac
Author: crazy <cr...@frugalware.org>
Date:   Fri Feb 19 15:02:42 2010 +0100

Make -Ss / -Qs look same
* well right now one part uses /'s one []' and desc ()' ;)
* change at least desc part to display what it is in first place and look
* like the [Installed: ..] part.
* we have some packages with ()'s in desc so that does look strange as is now.

diff --git a/src/pacman-g2/query.c b/src/pacman-g2/query.c
index 6964f91..d3a534e 100644
--- a/src/pacman-g2/query.c
+++ b/src/pacman-g2/query.c
@@ -61,7 +61,7 @@ int querypkg(list_t *targets)
for(j = ret; j; j = pacman_list_next(j)) {
PM_PKG *pkg = pacman_list_getdata(j);

-                       printf("local/%s %s %s (%s)\n",
+                       printf("local/%s %s %s [Desc: %s]\n",
(char *)pacman_list_getdata(pacman_pkg_getinfo(pkg, PM_PKG_GROUPS)),
(char *)pacman_pkg_getinfo(pkg, PM_PKG_NAME),
(char *)pacman_pkg_getinfo(pkg, PM_PKG_VERSION),
diff --git a/src/pacman-g2/sync.c b/src/pacman-g2/sync.c
index eddb67c..7e7abb7 100644
--- a/src/pacman-g2/sync.c
+++ b/src/pacman-g2/sync.c
@@ -108,10 +108,10 @@ static int sync_search(list_t *syncs, list_t *targets)
PM_PKG *ipkg = pacman_db_readpkg(db_local, name);
if (ipkg) {
char *iversion = (char*)pacman_pkg_getinfo(ipkg, PM_PKG_VERSION);
-                               printf("[%s: %s] ", _("installed"), iversion);
+                               printf("[%s: %s] ", _("Installed"), iversion);
}
-
-                       printf("(%s)\n", (char *)pacman_pkg_getinfo(pkg, 
PM_PKG_DESC));
+
+                       printf("[%s: %s]\n", _("Desc"), (char 
*)pacman_pkg_getinfo(pkg, PM_PKG_DESC));
}
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to