summaryrefslogtreecommitdiffstats
path: root/abs/core/pacman/makepkg-asroot.patch
blob: e0f085b4c2b5c568f3df59bd63ed67a251117100 (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
+		error "$(gettext "Running %s as root.")" "makepkg"
+		#exit $E_ROOT
 	fi
 else
 	if [[ -z $FAKEROOTKEY ]]; then