[pacman-dev] [PATCH] updpkgsums: Allow checksums upgrade with root
Sébastien Luttringer
seblu at seblu.net
Fri Apr 5 20:18:18 EDT 2013
Add --asroot into the makepkg call to allow package upgrade when running as root.
Signed-off-by: Sébastien Luttringer <seblu at seblu.net>
---
contrib/updpkgsums.sh.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/updpkgsums.sh.in b/contrib/updpkgsums.sh.in
index ffea96b..7456553 100644
--- a/contrib/updpkgsums.sh.in
+++ b/contrib/updpkgsums.sh.in
@@ -75,7 +75,7 @@ fi
# Generate the new sums and try to unlink the file before writing stdin back
# into it. This final precaution shouldn't fail based on the previous checks,
# but it's better to be extra careful before unlinking files.
- newsums=$(makepkg -g -p "$buildfile") && rm -f "$buildfile" &&
+ newsums=$(makepkg --asroot -g -p "$buildfile") && rm -f "$buildfile" &&
exec awk -v newsums="$newsums" '
/^[[:blank:]]*(md|sha)[[:digit:]]+sums=/,/\)[[:blank:]]*(#.*)?$/ {
if (!w) {
--
1.8.2
More information about the pacman-dev
mailing list