summaryrefslogtreecommitdiff
path: root/autodeps
diff options
context:
space:
mode:
Diffstat (limited to 'autodeps')
-rw-r--r--autodeps/linux.prov6
-rw-r--r--autodeps/linux.req6
2 files changed, 6 insertions, 6 deletions
diff --git a/autodeps/linux.prov b/autodeps/linux.prov
index f88888466..b858e6f6f 100644
--- a/autodeps/linux.prov
+++ b/autodeps/linux.prov
@@ -11,7 +11,7 @@ filelist=($(printf "%s\n" "${filelist[@]}" | grep -v "/usr/lib/debug/"))
solist=($(printf "%s\n" "${filelist[@]}" | grep "\\.so" | grep -v "^/lib/ld.so" | \
tr '\n' '\0' | xargs -0 -r file -L | grep "ELF.*shared object" | \
cut -d: -f1))
-pythonlist=
+pythonlist=($(printf "%s\n" "${filelist[@]}" | egrep '/usr/bin/python.\..$'))
tcllist=
monolist=($(printf "%s\n" "${filelist[@]}" | egrep "\\.(exe|dll)\$"))
firmwarelist=($(printf "%s\n" "${filelist[@]}" | grep "/lib/firmware/"))
@@ -54,8 +54,8 @@ done | sort -u
#
# --- Python modules.
-[ -x /usr/lib/rpm/python.prov -a -n "$pythonlist" ] &&
- printf "%s\n" "${pythonlist[@]}" | /usr/lib/rpm/python.prov | sort -u
+[ -x /usr/lib/rpm/pythondeps.sh -a -n "$pythonlist" ] &&
+ printf "%s\n" "${pythonlist[@]}" | /usr/lib/rpm/pythondeps.sh -P | sort -u
#
# --- Tcl modules.
diff --git a/autodeps/linux.req b/autodeps/linux.req
index 2f016d04d..be6ee4f7b 100644
--- a/autodeps/linux.req
+++ b/autodeps/linux.req
@@ -30,7 +30,7 @@ liblist=($(printf "%s\0" "${filelist[@]}" | xargs -0 -r file | \
interplist=()
perllist=()
-pythonlist=()
+pythonlist=($(printf "%s\n" "${filelist[@]}" | egrep '/usr/lib[^/]*/python.\..'))
tcllist=()
monolist=($(printf "%s\n" "${filelist[@]}" | egrep "\\.(exe|dll)(\\.config)?\$"))
@@ -126,8 +126,8 @@ done | sort -u
#
# --- Python modules.
-[ -x /usr/lib/rpm/python.req -a -n "$pythonlist" ] && \
- printf "%s\n" "${pythonlist[@]}" | /usr/lib/rpm/python.req | sort -u
+[ -x /usr/lib/rpm/pythondeps.sh -a -n "$pythonlist" ] && \
+ printf "%s\n" "${pythonlist[@]}" | /usr/lib/rpm/pythondeps.sh -R | sort -u
#
# --- Tcl modules.