From 7a5f5b49aaa035fec6fba47030f48cebda934856 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sun, 10 Dec 2006 22:49:21 +0000 Subject: common.sh: package_build small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@69 04377dda-e619-0410-9926-eae83683ac58 --- lib/common.sh | 2 +- src/simplaret | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common.sh b/lib/common.sh index fdcd5a0..ed00779 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -83,7 +83,7 @@ function package_build { # get BUILD from a package name local file pack build - file="`basename $1`" + file="`basename $1 .tgz`" pack="`package_name $1`" build="`echo $file | sed -e "s/^$pack-//" | cut -d "-" -f 3`" echo $build diff --git a/src/simplaret b/src/simplaret index 1c32166..ae738f2 100755 --- a/src/simplaret +++ b/src/simplaret @@ -439,7 +439,7 @@ function simplaret_search_and_download_patch { local package_version package_build # get just the file name - candidate="`basename $(echo $candidate | cut -d , -f 1)`" + candidate="`echo $candidate | cut -d , -f 1`" # now split the file name into pieces package_version="`package_version $candidate`" -- cgit v1.2.3