Commit 7c8572e0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add support for Source0:, add check for empty source name detected

parent 9c9303fe
...@@ -89,6 +89,8 @@ get_version() ...@@ -89,6 +89,8 @@ get_version()
get_tarballname() get_tarballname()
{ {
local SOURCE=$(eval_spec $1 | get_var "Source$2") local SOURCE=$(eval_spec $1 | get_var "Source$2")
[ -n "$SOURCE" ] || SOURCE=$(eval_spec $1 | get_var "Source0")
[ -n "$SOURCE" ] || fatal "Can't grep Source$2 from spec $1"
basename $(basename $SOURCE | sed -e "s|-$(get_version $1).*||g") .tar basename $(basename $SOURCE | sed -e "s|-$(get_version $1).*||g") .tar
} }
......
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