keep pacman happy, even if it can't chroot to run scripts
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Mon, 13 Feb 2023 22:07:57 +0100
changeset 115 b027d8e5b14e
parent 114 9def1a3011ed
child 116 dc462ee1c0f5
keep pacman happy, even if it can't chroot to run scripts
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) {