pacman/scripts
Allan McRae 622326bb37 makepkg: fix sudo/su calling of pacman
This fixes two issues:

1) using "sudo -l" results in excess password asking under certian
configurations.  Revert to the pre 3.4 behaviour of always using
sudo if it is installed.

2) Properly escape the command so that that versioned dependencies,
such as "foo>4", do not get treated as output redirection when using
su.  This also unifies the generation of the pacman line and its
privilege escalation.

Based on patches supplied by Andres P <aepd87@gmail.com> with minor
adjustments for suitability for the maint branch.

Original-work-by: Andres P <aepd87@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
2010-07-01 00:23:20 -05:00
..
.gitignore Add pkgdelta script to create deltas. 2009-03-15 18:10:15 +01:00
Makefile.am makepkg: try standard paths for coreutils du 2010-06-30 08:27:29 -05:00
makepkg.sh.in makepkg: fix sudo/su calling of pacman 2010-07-01 00:23:20 -05:00
pacman-optimize.sh.in Bump copyright dates to 2010 2010-03-14 19:46:59 -05:00
pkgdelta.sh.in scripts: replace test builtin [ with shell keywords [[ and (( 2009-11-15 19:22:54 -06:00
rankmirrors.sh.in rankmirrors: pipe errors to stderr 2010-06-23 13:32:21 +10:00
repo-add.sh.in repo-add: try symlink, then hardlink, then copy for DB file 2010-06-24 10:06:36 -05:00