mirror of
https://github.com/outbackdingo/scratchpkg.git
synced 2026-03-19 17:13:42 +00:00
update pkgfix
This commit is contained in:
11
pkgfix
11
pkgfix
@@ -22,6 +22,16 @@
|
||||
|
||||
export LANG=C
|
||||
|
||||
get_pythonmodules() {
|
||||
command -v python3 >/dev/null || return
|
||||
pylibpath=$(python3 -c "import sys; print(':'.join(x for x in sys.path if x))" | tr ':' '\n' | sort | head -n1)
|
||||
for i in /usr/lib/python3.*; do
|
||||
[ -d "$i" ] || continue
|
||||
[ "$i" = "$pylibpath" ] && continue
|
||||
brokenpkg="$brokenpkg $(scratch provide $i/$ | awk '{print $1}')"
|
||||
done
|
||||
}
|
||||
|
||||
get_perlmodules() {
|
||||
command -v perl >/dev/null || return
|
||||
perlpath=$(dirname $(perl -V:sitearch | grep -o "'.*'" | sed "s/'//g"))
|
||||
@@ -111,6 +121,7 @@ fi
|
||||
get_modules
|
||||
get_perlmodules
|
||||
get_rubygem
|
||||
get_pythonmodules
|
||||
|
||||
if [ "$brokenpkg" ]; then
|
||||
sort_modules
|
||||
|
||||
Reference in New Issue
Block a user