Commit a117d733 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: skip repacking for the same target

parent 472675a4
...@@ -70,6 +70,10 @@ get_archive() ...@@ -70,6 +70,10 @@ get_archive()
rm -f "$WEXT.$1" rm -f "$WEXT.$1"
return 1 return 1
fi fi
if [ "$WEXT.$1" = "$(basename "$GETSOURCE")" ] ; then
# Skip repacking if the target has the same name
return 0
fi
erc repack "$WEXT.$1" "$(basename "$GETSOURCE")" erc repack "$WEXT.$1" "$(basename "$GETSOURCE")"
} }
......
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