From c15f7710deafe1b4fe9411381bd07cd0dbe8da48 Mon Sep 17 00:00:00 2001 From: Nagy Gabor Date: Fri, 23 Nov 2007 22:32:40 +0100 Subject: Unify dump_pkg_full in pacman [-Si, -Qip, -Qi and -Qii] dump_pkg_sync is now a trivial wrapper for dump_pkg_full Some smaller changes: * string_display function added to util.c [prints None in case of empty string] * Filename field added to -Qip * rename License to Licenses * 'Compressed Size' used instead of 'Download Size' for -Qip Signed-off-by: Nagy Gabor [Dan: fix whitespace errors, spacing issues, const modifiers] Signed-off-by: Dan McGee --- src/pacman/sync.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/pacman/sync.c') diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 58e616e7..77939623 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -372,7 +372,6 @@ static int sync_info(alpm_list_t *syncs, alpm_list_t *targets) if(strcmp(alpm_pkg_get_name(pkg), pkgstr) == 0) { dump_pkg_sync(pkg, alpm_db_get_name(db)); - printf("\n"); foundpkg = 1; break; } @@ -393,7 +392,6 @@ static int sync_info(alpm_list_t *syncs, alpm_list_t *targets) if(strcmp(alpm_pkg_get_name(pkg), pkgstr) == 0) { dump_pkg_sync(pkg, alpm_db_get_name(db)); - printf("\n"); foundpkg = 1; break; } @@ -411,7 +409,6 @@ static int sync_info(alpm_list_t *syncs, alpm_list_t *targets) for(j = alpm_db_getpkgcache(db); j; j = alpm_list_next(j)) { dump_pkg_sync(alpm_list_getdata(j), alpm_db_get_name(db)); - printf("\n"); } } } -- cgit v1.2.3-24-g4f1b