Commit 8001c441 authored by Vitaly Lipatov's avatar Vitaly Lipatov

spec: add spec_by_srpm function

parent 70bc1efd
...@@ -163,3 +163,10 @@ add_changelog_helper() ...@@ -163,3 +163,10 @@ add_changelog_helper()
return $R return $R
} }
spec_by_srpm()
{
local PKG=$1
local PKGNAME
PKGNAME=$(rpm -qp --queryformat "%{NAME}" $PKG)
[ -n "$PKGNAME" ] && echo $PKGNAME.spec
}
...@@ -13,12 +13,6 @@ pack_srpm_package() ...@@ -13,12 +13,6 @@ pack_srpm_package()
LISTNAMES=$1 pack_src_rpm LISTNAMES=$1 pack_src_rpm
} }
spec_by_srpm()
{
local PKGNAME=$1
echo $(rpm -qp --queryformat "%{NAME}" $PKGNAME).spec
}
export IGNOREGEAR=1 export IGNOREGEAR=1
RPMTOPDIR=$RPMDIR/BP RPMTOPDIR=$RPMDIR/BP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment