summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2010-08-21 17:28:16 +0300
committerMart Raudsepp <leio@gentoo.org>2010-08-21 17:28:16 +0300
commit0e8f7f48eed106f2c930270d8db71fdd77d40ccd (patch)
treeb945ddf6c5877669af536e0f915f08dfa64152e2 /scripts
parentscripts: Don't count the library owning packages files in deprecated library ... (diff)
downloadgnome-0e8f7f48eed106f2c930270d8db71fdd77d40ccd.tar.gz
gnome-0e8f7f48eed106f2c930270d8db71fdd77d40ccd.tar.bz2
gnome-0e8f7f48eed106f2c930270d8db71fdd77d40ccd.zip
deprecated-library-user-count.sh: Report count of packages needing the library as well
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/deprecated-library-user-count.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/deprecated-library-user-count.sh b/scripts/deprecated-library-user-count.sh
index b618d424..7e14ccfb 100755
--- a/scripts/deprecated-library-user-count.sh
+++ b/scripts/deprecated-library-user-count.sh
@@ -8,7 +8,9 @@ cd /var/db/pkg
for lib in $LIBS; do
echo -n "${lib}: "
lib_owner=`qfile -eCq /usr/lib/${lib}*.so`
- grep "${lib}" */*/NEEDED.ELF.2 --exclude="${lib_owner}/NEEDED.ELF.2" |wc -l
+ lib_user_file_count=`grep "${lib}" */*/NEEDED.ELF.2 --exclude="${lib_owner}/NEEDED.ELF.2" |wc -l`
+ lib_user_package_count=`grep "${lib}" */*/NEEDED.ELF.2 --exclude="${lib_owner}/NEEDED.ELF.2" -l |wc -l`
+ echo "needed by ${lib_user_file_count} files from ${lib_user_package_count} packages"
done
popd >/dev/null