[Frugalware-darcs] pacman-g2: _pacman_sync_commit(): use _pacman_pkg_getinfo()

VMiklos vmiklos at frugalware.org
Sat Jul 21 23:13:59 CEST 2007


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

[_pacman_sync_commit(): use _pacman_pkg_getinfo()
VMiklos <vmiklos at frugalware.org>**20070721211214] {
hunk ./lib/libpacman/sync.c 799
-							snprintf(path, PATH_MAX, "%s-%s-%s" PM_EXT_PKG, spkg->name, spkg->version, spkg->arch);
+							snprintf(path, PATH_MAX, "%s-%s-%s" PM_EXT_PKG, (char*)_pacman_pkg_getinfo(spkg, PM_PKG_NAME), (char*)_pacman_pkg_getinfo(spkg, PM_PKG_VERSION), (char*)_pacman_pkg_getinfo(spkg, PM_PKG_ARCH));
}


More information about the Frugalware-darcs mailing list