Commit 3a5d747b authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: fix hack for empty Summary

parent a24cd6a5
......@@ -53,8 +53,7 @@ set_rpm_field()
{
local field="$1"
local value="$2"
local v="$(grep "^$field:.*" $SPEC | sed -e "s|$field: *||g" | head -n1)"
if [ -n "$v" ] ; then
if grep -q "^$field:" $SPEC ; then
[ -n "$value" ] || return
subst "s|^$field:.*|$field: $value|" $SPEC
else
......
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