unpack: convert printf added in previous to xbps_dbg_printf.

This commit is contained in:
Juan RP 2012-10-26 14:22:18 +02:00
parent 7fdae2d6dc
commit c58ca952a8

View File

@ -470,7 +470,6 @@ unpack_archive(struct xbps_handle *xhp,
p2 = xbps_xasprintf(".%s", tgtlnk);
assert(p2);
}
printf("p %s tgtlink %s p2 %s\n", p, tgtlnk, p2);
buf2 = realpath(p2, NULL);
assert(buf2);
free(p2);
@ -479,6 +478,9 @@ unpack_archive(struct xbps_handle *xhp,
else
p2 = buf2;
xbps_dbg_printf(xhp, "[unpack] symlink cur "
"target: %s new target: %s\n", p, p2);
if (strcmp(p, p2) == 0) {
xbps_dbg_printf(xhp, "%s-%s: symlink "
"%s matched, skipping...\n",