Commit 017ca1e5 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm repack generic: fatal if no executable binaries found (eterbug #17820)

parent b6a30d56
......@@ -22,6 +22,7 @@ done
for i in $BUILDROOT/usr/bin/* ; do
[ -L "$i" ] && continue
[ -f "$i" ] || continue
[ -x "$i" ] || fatal "file ${i#$BUILDROOT} is not executable"
grep -Eq '^#!/usr/bin/python|^#!/usr/bin/env python' $i && flag_python3=1
subst 's|^#!/usr/bin/python$|#!/usr/bin/python3|' $i
subst 's|^#!/usr/bin/env python$|#!/usr/bin/env python3|' $i
......
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