From e0ece941e00d417e7ebb69e9fda7fa6dc02d6ae5 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 8 Apr 2009 03:21:31 +0200 Subject: [PATCH] Remove CWD as first argument to INSTALL/REMOVE scripts, it's unneeded. --HG-- extra : convert_revision : ce8d9cbdb0a83748304ba25e53950385a9442b3f --- shutils/metadata_scripts.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/shutils/metadata_scripts.sh b/shutils/metadata_scripts.sh index 85351231ad..2f2e05fb30 100644 --- a/shutils/metadata_scripts.sh +++ b/shutils/metadata_scripts.sh @@ -42,21 +42,21 @@ xbps_write_metadata_scripts_pkg() # # Generic INSTALL/REMOVE script. # -# \$1 = cwd -# \$2 = action -# \$3 = pkgname -# \$4 = version +# \$1 = action +# \$2 = pkgname +# \$3 = version # # Note that paths must be relative to CWD, to avoid calling -# host commands. +# host commands if /bin/sh (dash) is not installed and it's +# not possible to chroot(3). # export PATH="./bin:./sbin:./usr/bin:./usr/sbin" TRIGGERSDIR="./var/db/xbps/triggers" -ACTION="\$2" -PKGNAME="\$3" -VERSION="\$4" +ACTION="\$1" +PKGNAME="\$2" +VERSION="\$3" _EOF