Commit 4d524d95 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpm: check for any spec name

parent 0efa6013
......@@ -104,6 +104,8 @@ spec_by_srpm()
local PKGNAME
PKGNAME=$(querypackage $PKG NAME)
[ -n "$PKGNAME" ] && echo $PKGNAME.spec
# if spec have a different name, use pkg file list
[ -r "$PKGNAME.spec" ] || rpm -qlp $PKG | grep "\.spec\$"
}
......
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