On 06/04/13 10:18, Sébastien Luttringer wrote: > Add --asroot into the makepkg call to allow package upgrade when running as > root.
Um... and break this for every person that is not stupidly running this as root? > Signed-off-by: Sébastien Luttringer <[email protected]> > --- > 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) { >
