Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git diff
- diff --git a/lib/libpacman/sync.c b/lib/libpacman/sync.c
- index 35a4b01..c9fcefa 100644
- --- a/lib/libpacman/sync.c
- +++ b/lib/libpacman/sync.c
- @@ -819,6 +819,13 @@ int _pacman_sync_commit(pmtrans_t *trans, pmdb_t *db_local, pmlist_t **data)
- (char *)_pacman_pkg_getinfo(spkg, PM_PKG_NAME),
- (char *)_pacman_pkg_getinfo(spkg, PM_PKG_VERSION),
- (char *)_pacman_pkg_getinfo(spkg, PM_PKG_ARCH));
- +
- + char lcpath[PATH_MAX];
- + struct stat lcbuf;
- + snprintf(lcpath, sizeof(lcpath), "%s/%s", ldir, path);
- + if (stat(lcpath, &lcbuf) == 0) {
- + continue;
- + }
- EVENT(trans, PM_TRANS_EVT_PRINTURI, pacman_db_getinfo(current, PM_DB_FIRSTSERVER), path);
- } else {
- struct stat buf;
Add Comment
Please, Sign In to add comment