]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
common.sh: package_build small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sun, 10 Dec 2006 22:49:21 +0000 (22:49 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sun, 10 Dec 2006 22:49:21 +0000 (22:49 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@69 04377dda-e619-0410-9926-eae83683ac58

lib/common.sh
src/simplaret

index fdcd5a054d75842ff1f8e25d661b8546ffb45182..ed00779dff632348712d3594d2bbc12312d306a1 100644 (file)
@@ -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
index 1c32166044eb90917564d80001dd3f71ad19ea55..ae738f2d2d0f708bdeaf818b77f348e5b7812ac6 100755 (executable)
@@ -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`"