[pacman-dev] [PATCH] Print a newline between packages when printing sync info.

Loui louipc.ist at gmail.com
Thu Oct 2 19:04:22 EDT 2008


Reading sync info of more than one package was a bit confusing so I
added a newline so it's easier to read.

-------------- next part --------------
>From 030ebfd154f61930cfe778027de6a6ce3636ef53 Mon Sep 17 00:00:00 2001
From: Loui Chang <louipc.ist at gmail.com>
Date: Thu, 2 Oct 2008 18:45:58 -0400
Subject: [PATCH] Print a newline between packages when printing sync info.

Signed-off-by: Loui Chang <louipc.ist at gmail.com>
---
 src/pacman/sync.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 63397aa..f60fa9d 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -451,6 +451,7 @@ 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;
 						}
@@ -469,6 +470,7 @@ static int sync_info(alpm_list_t *syncs, alpm_list_t *targets)
 
 			for(j = alpm_db_get_pkgcache(db); j; j = alpm_list_next(j)) {
 				dump_pkg_sync(alpm_list_getdata(j), alpm_db_get_name(db));
+				printf("\n");
 			}
 		}
 	}
-- 
1.6.0.2



More information about the pacman-dev mailing list