Commit 972701a0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack generic.sh: do fix_cpio_bug_links (workaround for ALT bug 42189)

parent ae05f97f
......@@ -386,6 +386,18 @@ set_autoprov()
fi
}
# https://bugzilla.altlinux.org/42189
fix_cpio_bug_links()
{
local rlink
find -type l | while read link ; do
rlink="$(readlink "$link")"
echo "$rlink" | grep -E "^(etc|var|opt|usr)/" || continue
echo "Fixing cpio ALT bug 42189 in $link <- $rlink" >&2
rm -v $link
ln -sv /$rlink $link
done
}
# by default check in $PRODUCTDIR
use_system_xdg()
......
......@@ -96,3 +96,4 @@ else
subst "s|^\((Converted from a\) \(.*\) \(package.*\)|(Repacked from binary \2 package with $(epm --short --version))\n\1 \2 \3|" $SPEC
fi
fix_cpio_bug_links
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