packageneedsme.sh finds no-maintainer and old eapi
This commit is contained in:
parent
e2954f6178
commit
8fe17f1285
41
packageneedsme.sh
Executable file
41
packageneedsme.sh
Executable file
@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# This script will list all installed packages on a gentoo system
|
||||||
|
# without maintainer or old EAPI.
|
||||||
|
# depends on eix
|
||||||
|
# License: GPL-2
|
||||||
|
# Author: Jonas Stein
|
||||||
|
# Repository: https://github.com/jonasstein/packageneedsme
|
||||||
|
#
|
||||||
|
declare -a INSTALLED # declare an array
|
||||||
|
INSTALLED=( $(EIX_LIMIT=0 eix --installed --in-overlay 0 --only-names) )
|
||||||
|
|
||||||
|
|
||||||
|
echo "These installed packages have no maintainer. The package is waiting for you:"
|
||||||
|
for catpkg in "${INSTALLED[@]}"
|
||||||
|
do
|
||||||
|
grep -q "<!-- maintainer-needed -->" /usr/portage/$catpkg/metadata.xml && echo $catpkg
|
||||||
|
done
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "These installed packages use a very old EAPI. You can prepare a PR:"
|
||||||
|
INSTALLED=( $(EIX_LIMIT=0 eix --installed --in-overlay 0 --only-names --installed-eapi 0))
|
||||||
|
|
||||||
|
for catpkg in "${INSTALLED[@]}"
|
||||||
|
do
|
||||||
|
echo "EAPI="0" $catpkg"
|
||||||
|
done
|
||||||
|
|
||||||
|
INSTALLED=( $(EIX_LIMIT=0 eix --installed --in-overlay 0 --only-names --installed-eapi 2))
|
||||||
|
|
||||||
|
for catpkg in "${INSTALLED[@]}"
|
||||||
|
do
|
||||||
|
echo "EAPI="2" $catpkg"
|
||||||
|
done
|
||||||
|
|
||||||
|
INSTALLED=( $(EIX_LIMIT=0 eix --installed --in-overlay 0 --only-names --installed-eapi 3))
|
||||||
|
|
||||||
|
for catpkg in "${INSTALLED[@]}"
|
||||||
|
do
|
||||||
|
echo "EAPI="3" $catpkg"
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user