mirror of
https://github.com/outbackdingo/scratchpkg.git
synced 2026-02-06 01:16:34 +00:00
updated
This commit is contained in:
13
extra/revdep
13
extra/revdep
@@ -13,9 +13,8 @@ onepkg() {
|
||||
*application/x-sharedlib* | *application/x-executable*)
|
||||
if [ "$(ldd $line 2>/dev/null | grep "not found")" ]; then
|
||||
LIB_NAME=$(ldd $line 2>/dev/null | grep "not found" | sort | uniq | awk '{print $1}')
|
||||
for i in ${LIB_NAME[@]}; do
|
||||
echo -e "$line ${color_green}>>>${color_reset} $i"
|
||||
done
|
||||
LIB=$(echo $LIB_NAME | tr '\n' ' ')
|
||||
echo -e "$line ${color_green}>>>${color_reset} $LIB"
|
||||
fi
|
||||
esac
|
||||
done < <(grep -E "^(bin|lib|libexec|sbin|usr/bin|usr/lib|usr/libexec|usr/sbin)" $INDEX_DIR/$1/.files | grep -Ev "(/firmware/|/java/|/debug/)")
|
||||
@@ -30,16 +29,15 @@ allpkg() {
|
||||
|
||||
pushd / >/dev/null
|
||||
for pkgs in $(seq 0 $(($totalpkgs -1))); do
|
||||
echo -ne "[ $((pkgs + 1))/$totalpkgs ] Checking ${allpkgs[pkgs]}...\033[0K\r"
|
||||
echo -ne "[ $((pkgs + 1))/$totalpkgs ] Checking ${allpkgs[pkgs]}...\033[0K\r"
|
||||
while IFS=' ' read -r line; do
|
||||
case "$(file -Lbi "${line}")" in
|
||||
*application/x-sharedlib* | *application/x-executable*)
|
||||
if [ "$(ldd $line 2>/dev/null | grep "not found")" ]; then
|
||||
LIB_NAME=$(ldd $line 2>/dev/null | grep "not found" | sort | uniq | awk '{print $1}')
|
||||
PKG_NAME=$(basename $(dirname $(grep -Rx $line $INDEX_DIR | cut -d ':' -f1)))
|
||||
for i in ${LIB_NAME[@]}; do
|
||||
echo -e "(${color_green}$PKG_NAME${color_reset}) $line ${color_green}>>>${color_reset} $i"
|
||||
done
|
||||
LIB=$(echo $LIB_NAME | tr '\n' ' ')
|
||||
echo -e "(${color_green}$PKG_NAME${color_reset}) $line ${color_green}>>>${color_reset} $LIB"
|
||||
if [[ "$(echo ${ALLPKG[@]} | tr ' ' '\n' | grep -w "$PKG_NAME")" ]]; then
|
||||
continue
|
||||
else
|
||||
@@ -62,7 +60,6 @@ allpkg() {
|
||||
else
|
||||
echo "All packages is doing fine."
|
||||
fi
|
||||
echo
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user