# HG changeset patch # User Edouard Tisserant # Date 1676322477 -3600 # Node ID b027d8e5b14ee3b308fa2f383b7d388cca912e1e # Parent 9def1a3011ed02c709091672f08d3cd418fd1cd9 keep pacman happy, even if it can't chroot to run scripts diff -r 9def1a3011ed -r b027d8e5b14e pacman-6.0.0-nogpg-relative_conf.patch --- a/pacman-6.0.0-nogpg-relative_conf.patch Mon Feb 13 22:06:46 2023 +0100 +++ b/pacman-6.0.0-nogpg-relative_conf.patch Mon Feb 13 22:07:57 2023 +0100 @@ -1,7 +1,7 @@ diff -ruN pacman-6.0.0.orig/lib/libalpm/util.c pacman-6.0.0/lib/libalpm/util.c --- pacman-6.0.0.orig/lib/libalpm/util.c 2021-05-20 03:38:45.948119900 +0000 +++ pacman-6.0.0/lib/libalpm/util.c 2021-08-26 17:26:09.719703392 +0000 -@@ -652,6 +652,11 @@ +@@ -652,6 +652,12 @@ /* use fprintf instead of _alpm_log to send output through the parent */ if(chroot(handle->root) != 0) { fprintf(stderr, _("could not change the root directory (%s)\n"), strerror(errno)); @@ -10,6 +10,7 @@ + fprintf(stderr, " %s", argv[i]); + } + fprintf(stderr, "\n"); ++ return 0; //be happy exit(1); } if(chdir("/") != 0) {