Commit 339a1f3f authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-restore: skip sections, drop commented tails

parent 97f26c5c
......@@ -50,10 +50,15 @@ __epm_restore_pip()
local ilist=''
while read l ; do
local t="$(echo "$l" | sed -e "s| *[<>!]*=.*||" | __epm_filter_pip_to_rpm)"
local t="$(echo "$l" | sed -e "s| *[<>!]*=.*||" -e "s| *#.*||" | __epm_filter_pip_to_rpm)"
if echo "$l" | grep -qE "^ *#" || [ -z "$l" ] ; then
continue
fi
# until new section
if echo "$l" | grep -qE "^\[" ; then
break
fi
# if dependency_links URLs, use egg name
if echo "$l" | grep -qE "://" ; then
if echo "$l" | grep -q "#egg=" ; then
t="$(echo "$l" | sed -e "s|.*#egg=||" -e "s|\[.*||" | __epm_filter_pip_to_rpm)"
......
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