mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
scripts: fix bug-461824.sh script
This commit is contained in:
parent
334a969b9e
commit
0cff7a12e4
1 changed files with 4 additions and 7 deletions
|
|
@ -16,12 +16,9 @@ wait $WAITPIDS
|
|||
#fgrep -r _portage_reinstall_ /etc {/usr,}/{*bin,lib*} | fgrep -v doebuild > /tmp/urfuct.txt
|
||||
#find /etc {/usr,}/{*bin,lib*} -type f | xargs -P ${CORES} fgrep '_portage_rebuild_' | fgrep -v doebuild > /tmp/urfuct.txt
|
||||
if [ -n "$(cat /tmp/urfuct.txt)" ]; then
|
||||
for badhit in $(cat /tmp/urfuct.txt) ; do
|
||||
echo ${badhit} | cut -d":" -f1 >> /tmp/badfiles.txt
|
||||
done
|
||||
xargs -a /tmp/badfiles.txt qfile -S -C | cut -d' ' -f1 >> /tmp/badpkg_us.txt
|
||||
cat /tmp/badpkg_us.txt | sort -u > /tmp/badpkg.txt
|
||||
cat /tmp/badpkg.txt | grep -v portage > /tmp/badpkg.txt
|
||||
cat /tmp/urfuct.txt | cut -d":" -f1 > /tmp/badfiles.txt
|
||||
xargs -a /tmp/badfiles.txt qfile -S -C | 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)
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue