]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
common.sh fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sat, 9 Dec 2006 16:55:22 +0000 (16:55 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sat, 9 Dec 2006 16:55:22 +0000 (16:55 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@55 04377dda-e619-0410-9926-eae83683ac58

lib/common.sh

index 6f6605079765361fe4f1d3afc36eddb6c47ae958..9eb57536ca37f63a7676d348bda8d0b1b984d327 100644 (file)
@@ -61,7 +61,7 @@ function package_version {
   local file pack version
   file="`basename $1`"
   pack="`package_name $1`"
-  version="`echo $file | sed -e "s/^$pack//" | cut -d "-" -f 1`"
+  version="`echo $file | sed -e "s/^$pack-//" | cut -d "-" -f 1`"
   echo $version
 
 }
@@ -72,7 +72,7 @@ function package_arch {
   local file pack arch
   file="`basename $1`"
   pack="`package_name $1`"
-  arch="`echo $file | sed -e "s/^$pack//" | cut -d "-" -f 2`"
+  arch="`echo $file | sed -e "s/^$pack-//" | cut -d "-" -f 2`"
   echo $arch
 
 }
@@ -83,7 +83,7 @@ function package_build {
   local file pack build
   file="`basename $1`"
   pack="`package_name $1`"
-  build="`echo $file | sed -e "s/^$pack//" | cut -d "-" -f 3`"
+  build="`echo $file | sed -e "s/^$pack-//" | cut -d "-" -f 3`"
   echo $build
 
 }