aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2006-12-10 22:49:21 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2006-12-10 22:49:21 +0000
commit7a5f5b49aaa035fec6fba47030f48cebda934856 (patch)
tree4d1acb119fe83f09217e58b5ed3603e0f75bb5fd /lib
parenta97dbb50966ae76345c7afba88acb3c061957667 (diff)
downloadsimplepkg-7a5f5b49aaa035fec6fba47030f48cebda934856.tar.gz
simplepkg-7a5f5b49aaa035fec6fba47030f48cebda934856.tar.bz2
common.sh: package_build small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@69 04377dda-e619-0410-9926-eae83683ac58
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