Guest User

Untitled

a guest
Jul 18th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. root /home/djszapi/Munka/ArchLinux-devel/Projects/tmp/pacman-g2 # git diff
  2. diff --git a/lib/libpacman/sync.c b/lib/libpacman/sync.c
  3. index 35a4b01..b9a790e 100644
  4. --- a/lib/libpacman/sync.c
  5. +++ b/lib/libpacman/sync.c
  6. @@ -819,6 +819,14 @@ 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. + printf("Helloworld!\n");
  15. + if (stat(lcpath, &lcbuf) == 0) {
  16. + continue;
  17. + }
  18. EVENT(trans, PM_TRANS_EVT_PRINTURI, pacman_db_getinfo(current, PM_DB_FIRSTSERVER), path);
  19. } else {
  20. struct stat buf;
Add Comment
Please, Sign In to add comment