]> git.ipfire.org Git - pakfire.git/commitdiff
Speed up dependency detection.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Apr 2012 17:40:48 +0000 (19:40 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 3 Apr 2012 17:40:48 +0000 (19:40 +0200)
tools/find-provides
tools/find-requires

index 0be2de7b48132ab3268e1ef5896e00d361db342e..2e138baf2461f7f89df4d7c3d8cd4144b76549d6 100755 (executable)
@@ -14,10 +14,21 @@ pkgconfig_files=
 # Walk through all file files and see what we have got here.
 while read file; do
        case "${file}" in
+               */usr/lib/debug/*|*/usr/src/debug/*)
+                       # Skip all debuginfo files.
+                       continue
+                       ;;
                */usr/lib*/python*/*.so*)
                        # Do not show python shared objects in provides list.
                        ;;
+               */usr/lib*/gconv/*)
+                       # Skip gconv files.
+                       continue
+                       ;;
                *.so*)
+                       # Skip symlinks for performance reasons.
+                       [ -L "${file}" ] && continue
+
                        file_is_elf ${file} >/dev/null 2>&1 && \
                                binary_files="${binary_files} ${file}"
                        ;;
@@ -33,8 +44,6 @@ done < ${FILELIST}
 
 # Search for SONAMEs in all binary files.
 for file in ${binary_files}; do
-       [ -L ${file} ] && continue
-
        soname=$(file_get_soname ${file})
 
        # If the files does not have a SONAME, we will
index 5a6c9a924d2efdd6eff03d6eb5516564ae69bd91..1f49dabea905302b04c934460c75ef2976ba9c4d 100755 (executable)
@@ -25,6 +25,11 @@ while read file; do
        case "${file}" in
                */usr/lib/debug/*|*/usr/src/debug/*)
                        # Skip all debuginfo files.
+                       continue
+                       ;;
+               */usr/lib*/gconv/*)
+                       # Skip all gconv files.
+                       continue
                        ;;
                *.ko)
                        # Skip all kernel modules because they do not
@@ -47,6 +52,7 @@ while read file; do
                # Python
                */usr/lib*/python*/*)
                        # Sort out all python files.
+                       # Directories are processed bewlow.
                        ;;
                */usr/lib/python*|*/usr/lib64/python*)
                        # This will only get the python directory.