add makepkg patch

This commit is contained in:
Jake Howard 2017-08-12 21:16:24 +01:00
parent dc91f8dae4
commit 492b582f7d
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 15 additions and 0 deletions

View File

@ -2,4 +2,8 @@
set -e
patch /usr/bin/makepkg < makepkg.patch
puppet apply manifests/main.pp --modulepath=modules/ --verbose
patch /usr/bin/makepkg -R < makepkg.patch

11
makepkg.patch Normal file
View File

@ -0,0 +1,11 @@
--- /usr/bin/makepkg 2017-07-04 10:29:39.000000000 +0100
+++ makepkg.bak 2017-08-10 09:30:02.882437815 +0100
@@ -2127,7 +2127,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
+ # exit 1 # $E_USER_ABORT
fi
else
if [[ -z $FAKEROOTKEY ]]; then