From bd0b698f34ba1a1377b694e4e991a8198defa404 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 31 Oct 2011 20:44:54 +0000 Subject: [PATCH] extract package name from IDMETA --- id-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/id-release b/id-release index 0eb2bf7..d888b5d 100755 --- a/id-release +++ b/id-release @@ -32,7 +32,7 @@ if [ `ls |egrep '\.spec$' | wc -l` -eq 0 ]; then usage else spec=`ls |egrep '\.spec$' | head -1` - package=`basename $spec .spec` + package=`perl -ne 's/\s*$//; print if s/^NAME=//' IDMETA` fi case $1 in -- 1.7.10.4