diff options
author | Nagy Gabor <ngaba@bibl.u-szeged.hu> | 2007-11-23 22:32:40 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-12-01 11:58:07 -0600 |
commit | c15f7710deafe1b4fe9411381bd07cd0dbe8da48 (patch) | |
tree | 657ef0053d35f7310b1fb26584a9c7780cc5f9e3 /src/pacman/sync.c | |
parent | f19820cba8c4da8d6b7c84c694f3d327e94095a4 (diff) |
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 <ngaba@bibl.u-szeged.hu>
[Dan: fix whitespace errors, spacing issues, const modifiers]
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/sync.c')
-rw-r--r-- | src/pacman/sync.c | 3 |
1 files changed, 0 insertions, 3 deletions
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"); } } } |