[Frugalware-darcs] pacman-g2: sync_search() no need to check if the target list is empty

VMiklos vmiklos at frugalware.org
Sat Apr 21 12:37:41 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman-g2;a=darcs_commitdiff;h=20070421103419-e2957-374cd3ff4c10e4aea964632c43c0e7d31b28b548.gz;

[sync_search() no need to check if the target list is empty
VMiklos <vmiklos at frugalware.org>**20070421103419
 we bail out with an error already if it's empty
] {
hunk ./src/pacman-g2/sync.c 90
-		if(targets) {
hunk ./src/pacman-g2/sync.c 107
-		} else {
-			PM_LIST *lp;
-
-			for(lp = pacman_db_getpkgcache(db); lp; lp = pacman_list_next(lp)) {
-				PM_PKG *pkg = pacman_list_getdata(lp);
-
-				MSG(NL, "%s/%s %s\n    ", (char *)pacman_db_getinfo(db, PM_DB_TREENAME),
-						(char *)pacman_pkg_getinfo(pkg, PM_PKG_NAME),
-						(char *)pacman_pkg_getinfo(pkg, PM_PKG_VERSION));
-				indentprint(pacman_pkg_getinfo(pkg, PM_PKG_DESC), 4);
-				MSG(NL, "\n");
-			}
-		}
}


More information about the Frugalware-darcs mailing list