aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/common.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common.sh b/lib/common.sh
index 6f66050..9eb5753 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -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
}