aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/common.sh2
1 files changed, 1 insertions, 1 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