summaryrefslogtreecommitdiffstats
path: root/abs/core/pacman/makepkg-asroot.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2015-07-05 18:42:40 (GMT)
committerBritney Fransen <brfransen@gmail.com>2015-07-05 18:42:40 (GMT)
commitcb62d17450b7cc365a7bdbe0dac232af4d22faab (patch)
tree5029982da03bd17140e88bd9a504e442c98c3b94 /abs/core/pacman/makepkg-asroot.patch
parentd39f95aa83e0f76ab255322fbfcd35b23236f0a7 (diff)
downloadlinhes_pkgbuild-cb62d17450b7cc365a7bdbe0dac232af4d22faab.zip
linhes_pkgbuild-cb62d17450b7cc365a7bdbe0dac232af4d22faab.tar.gz
linhes_pkgbuild-cb62d17450b7cc365a7bdbe0dac232af4d22faab.tar.bz2
pacman: add makepkg asroot patch
Diffstat (limited to 'abs/core/pacman/makepkg-asroot.patch')
-rw-r--r--abs/core/pacman/makepkg-asroot.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/core/pacman/makepkg-asroot.patch b/abs/core/pacman/makepkg-asroot.patch
new file mode 100644
index 0000000..f45f0ee
--- /dev/null
+++ b/abs/core/pacman/makepkg-asroot.patch
@@ -0,0 +1,22 @@
+--- makepkg.orig 2015-02-16 13:15:31.079071494 +0000
++++ makepkg 2015-02-16 13:18:14.735730577 +0000
+@@ -3372,7 +3372,7 @@
+ 'help' 'holdver' 'ignorearch' 'install' 'key:' 'log' 'noarchive' 'nobuild'
+ 'nocolor' 'nocheck' 'nodeps' 'noextract' 'noprepare' 'nosign' 'pkg:' 'repackage'
+ 'rmdeps' 'sign' 'skipchecksums' 'skipinteg' 'skippgpcheck' 'source' 'syncdeps'
+- 'verifysource' 'version')
++ 'verifysource' 'version' 'asroot')
+
+ # Pacman Options
+ OPT_LONG+=('asdeps' 'noconfirm' 'needed' 'noprogressbar')
+@@ -3581,9 +3581,7 @@
+
+ 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
++ :
+ fi
+ else
+ if [[ -z $FAKEROOTKEY ]]; then