Guest User

Untitled

a guest
Jul 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. git diff
  2. diff --git a/lib/libpacman/sync.c b/lib/libpacman/sync.c
  3. index 35a4b01..c9fcefa 100644
  4. --- a/lib/libpacman/sync.c
  5. +++ b/lib/libpacman/sync.c
  6. @@ -819,6 +819,13 @@ int _pacman_sync_commit(pmtrans_t *trans, pmdb_t *db_local, pmlist_t **data)
  7. (char *)_pacman_pkg_getinfo(spkg, PM_PKG_NAME),
  8. (char *)_pacman_pkg_getinfo(spkg, PM_PKG_VERSION),
  9. (char *)_pacman_pkg_getinfo(spkg, PM_PKG_ARCH));
  10. +
  11. + char lcpath[PATH_MAX];
  12. + struct stat lcbuf;
  13. + snprintf(lcpath, sizeof(lcpath), "%s/%s", ldir, path);
  14. + if (stat(lcpath, &lcbuf) == 0) {
  15. + continue;
  16. + }
  17. EVENT(trans, PM_TRANS_EVT_PRINTURI, pacman_db_getinfo(current, PM_DB_FIRSTSERVER), path);
  18. } else {
  19. struct stat buf;
Add Comment
Please, Sign In to add comment