summaryrefslogtreecommitdiffstats
path: root/abs/core/pacman/makepkg-asroot.patch
blob: 8169bd843b80c43f62cb1d2687437578f94d0bd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- 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'
-          'skippgpcheck' 'source' 'syncdeps' 'verifysource' 'version')
+          'skippgpcheck' 'source' 'syncdeps' 'verifysource' 'version' 'asroot')
 
 # Pacman Options
 OPT_LONG+=('asdeps' 'noconfirm' 'needed' 'noprogressbar')
@@ -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 $E_ROOT
+		plain "$(gettext "Running %s as root.")" "makepkg"
+		#exit $E_ROOT
 	fi
 else
 	if [[ -z $FAKEROOTKEY ]]; then