Commit e1a0702c authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix get_packager

parent 6a862f5f
...@@ -295,8 +295,9 @@ get_gear_name() ...@@ -295,8 +295,9 @@ get_gear_name()
get_packager() get_packager()
{ {
local packager=$($RPMBUILD --eval "%packager" "$1") local packager="$($RPMBUILD --eval "%packager" "$1" 2>/dev/null)"
rhas "$packager" "packager" && fatal "Packager $packager is not defined correctly in spec $1 or in ~/.rpmmacros" rhas "$packager" "%packager" && fatal "Packager $packager is not defined correctly in spec $1 or in ~/.rpmmacros"
echo "$packager"
} }
......
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