-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmakepkg.patch
More file actions
42 lines (39 loc) · 1.57 KB
/
Copy pathmakepkg.patch
File metadata and controls
42 lines (39 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- makepkg 2015-01-05 23:22:47.313546720 +0300
+++ newpkg 2015-01-05 23:23:59.000861856 +0300
@@ -3367,7 +3367,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')
@@ -3574,18 +3574,18 @@
PACKAGER=${_PACKAGER:-$PACKAGER}
CARCH=${_CARCH:-$CARCH}
-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
- error "$(gettext "Do not use the %s option. This option is only for use by %s.")" "'-F'" "makepkg"
- exit 1 # TODO: error code
- fi
-fi
+#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
+# error "$(gettext "Do not use the %s option. This option is only for use by %s.")" "'-F'" "makepkg"
+# exit 1 # TODO: error code
+# fi
+#fi
unset pkgname pkgbase pkgver pkgrel epoch pkgdesc url license groups provides
unset md5sums replaces depends conflicts backup source install changelog build