summaryrefslogtreecommitdiffstats
path: root/abs/core/pacman/makepkg-asroot.patch
blob: f45f0ee19593d4c2ad8f15ca9c3dc85e5daa57bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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