bug-461824.sh: new qfile outputs slightly differently, this is compatible with old and new

This commit is contained in:
Rick Farina (Zero_Chaos) 2019-11-12 10:39:26 -05:00
parent dd4ac404a8
commit 1628aeea98
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -12,7 +12,7 @@ wait $WAITPIDS
if [ -n "$(cat /tmp/_portage_reinstall_.txt)" ]; then
cat /tmp/_portage_reinstall_.txt | cut -d":" -f1 > /tmp/badfiles.txt
xargs -a /tmp/badfiles.txt qfile -S -C | cut -d' ' -f1 > /tmp/badpkg_us.txt
xargs -a /tmp/badfiles.txt qfile -S -C | cut -d' ' -f1 | cut -d':' -f1 > /tmp/badpkg_us.txt
sort -u /tmp/badpkg_us.txt | grep -v portage > /tmp/badpkg.txt
if [ -n "$(cat /tmp/badpkg.txt)" ]; then
emerge -1 --buildpkg=y --nodeps $(cat /tmp/badpkg.txt)