Change command for exctraction .build-id debug files

This commit is contained in:
Aleksey Kislitsa 2022-05-13 12:45:19 +03:00
parent a1cfa1d810
commit b3131109b8
1 changed files with 5 additions and 3 deletions

View File

@ -28,9 +28,11 @@ extract() {
fi
cd -
cp -rP $tmp/lib/*/* $out 2>/dev/null || cp -rP $tmp/lib32/* $out 2>/dev/null \
|| cp -rP $tmp/usr/lib/debug/lib/*/* $out 2>/dev/null || cp -rP $tmp/usr/lib/debug/lib32/* $out 2>/dev/null \
|| cp -rP $tmp/usr/lib/debug/.build-id/* /usr/lib/debug/.build-id/ 2>/dev/null \
cp -rP $tmp/lib/*/* $out 2>/dev/null \
|| cp -rP $tmp/lib32/* $out 2>/dev/null \
|| cp -rP $tmp/usr/lib/debug/lib/*/* $out 2>/dev/null \
|| cp -rP $tmp/usr/lib/debug/lib32/* $out 2>/dev/null \
|| cp -rP $tmp/usr/lib/debug/.build-id $out 2>/dev/null \
|| die "Failed to save. Check it manually $tmp"
rm -rf $tmp