From 75a762f72aee8dea20f8e03f1a5e3bc1f20bd09e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 28 Aug 2005 20:24:17 +0000 Subject: [PATCH] - fix for installing from local src.rpm Changed files: license-installer.sh -> 1.6 --- license-installer.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/license-installer.sh b/license-installer.sh index 0d3933c..4a0378b 100644 --- a/license-installer.sh +++ b/license-installer.sh @@ -21,16 +21,18 @@ if [ "$1" = "--with" -a "$2" = "license_agreement" ]; then done fi if echo "$3" | grep '\.src\.rpm$' >/dev/null; then - ( cd $SRPMDIR + ( if echo "$3" | grep '://' >/dev/null; then + cd $SRPMDIR wget --passive-ftp -t0 "$3" else - cp -f "$3" . + cp -f "$3" $SRPMDIR + cd $SRPMDIR fi rpm2cpio `basename "$3"` | ( cd $TMPDIR; cpio -i @BASE_NAME@.spec ) if [ '@COPYSOURCES@' != '@'COPYSOURCES'@' ]; then for i in @COPYSOURCES@; do - rpm2cpio $i | ( cd $TMPDIR; cpio -i $i ) + rpm2cpio `basename "$3"` | ( cd $TMPDIR; cpio -i $i ) done fi ) -- 2.43.0