Commit 902b6097 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix error with spec in koi8-r

parent bb6c8c39
...@@ -9,6 +9,7 @@ get_var() ...@@ -9,6 +9,7 @@ get_var()
} }
# TODO: create temp spec, not just output: it masks specs problem now
# FIXME: only ALT handled rpm -bE # FIXME: only ALT handled rpm -bE
# Раскрывает макросы в спеке и выводит на стандартный вывод # Раскрывает макросы в спеке и выводит на стандартный вывод
eval_spec() eval_spec()
...@@ -37,7 +38,8 @@ eval_spec() ...@@ -37,7 +38,8 @@ eval_spec()
$USEARCH $RPMBUILD -bE --target $SYSARCH $RPMBUILDARG $SPEC || fatal "Check spec's fields" $USEARCH $RPMBUILD -bE --target $SYSARCH $RPMBUILDARG $SPEC || fatal "Check spec's fields"
else else
$USEARCH $RPMBUILD -bE --target $SYSARCH $RPMBUILDARG $SPEC 2>/dev/null || cat $SPEC $USEARCH $RPMBUILD -bE --target $SYSARCH $RPMBUILDARG $SPEC 2>/dev/null || cat $SPEC
fi fi | iconv -f utf8 -r
# FIXME: hack for koi8-r in spec (grep will not work with it)
rm -f $SPECNAME.tmp $SPECNAME.changelog rm -f $SPECNAME.tmp $SPECNAME.changelog
remove_file_from_remove $SPECNAME.tmp $SPECNAME.changelog remove_file_from_remove $SPECNAME.tmp $SPECNAME.changelog
} }
......
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