summaryrefslogtreecommitdiffstats
path: root/abs/core/pacman/makepkg-asroot.patch
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/pacman/makepkg-asroot.patch')
-rw-r--r--abs/core/pacman/makepkg-asroot.patch13
1 files changed, 7 insertions, 6 deletions
diff --git a/abs/core/pacman/makepkg-asroot.patch b/abs/core/pacman/makepkg-asroot.patch
index 8da3fb0..e0f085b 100644
--- a/abs/core/pacman/makepkg-asroot.patch
+++ b/abs/core/pacman/makepkg-asroot.patch
@@ -1,6 +1,6 @@
---- makepkg.orig 2016-04-22 15:35:51.860386914 +0000
-+++ makepkg 2016-04-22 15:39:19.543784899 +0000
-@@ -1917,7 +1917,7 @@
+--- makepkg.orig 2020-05-24 03:07:41.473343487 +0000
++++ makepkg 2020-05-24 03:39:17.572299608 +0000
+@@ -1027,7 +1027,7 @@
'help' 'holdver' 'ignorearch' 'install' 'key:' 'log' 'noarchive' 'nobuild'
'nocolor' 'nocheck' 'nodeps' 'noextract' 'noprepare' 'nosign' 'packagelist'
'printsrcinfo' 'repackage' 'rmdeps' 'sign' 'skipchecksums' 'skipinteg'
@@ -9,14 +9,15 @@
# Pacman Options
OPT_LONG+=('asdeps' 'noconfirm' 'needed' 'noprogressbar')
-@@ -2114,9 +2114,7 @@
+@@ -1173,9 +1173,8 @@
if (( ! INFAKEROOT )); then
if (( EUID == 0 )); then
- error "$(gettext "Running %s as root is not allowed as it can cause permanent,\n\
-catastrophic damage to your system.")" "makepkg"
-- exit 1 # $E_USER_ABORT
-+ :
+- exit $E_ROOT
++ error "$(gettext "Running %s as root.")" "makepkg"
++ #exit $E_ROOT
fi
else
if [[ -z $FAKEROOTKEY ]]; then