summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2010-08-21 17:03:10 +0300
committerMart Raudsepp <leio@gentoo.org>2010-08-21 17:03:10 +0300
commitd08bfa3692591e434a61905cb52b855a3826b5d0 (patch)
tree850712c3df4949de37001c2ecbe0aa91a6777416 /scripts
parentgnome-base/librsvg: add patch to remove automagic dep on gtk+:3 (diff)
downloadgnome-d08bfa3692591e434a61905cb52b855a3826b5d0.tar.gz
gnome-d08bfa3692591e434a61905cb52b855a3826b5d0.tar.bz2
gnome-d08bfa3692591e434a61905cb52b855a3826b5d0.zip
scripts: Don't count the library owning packages files in deprecated library user count script
The purpose of this script is to report how many other installed packages binaries still link against the deprecated libraries, so don't report the files from the same package that provides the library.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/deprecated-library-user-count.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/deprecated-library-user-count.sh b/scripts/deprecated-library-user-count.sh
index a917bd76..b618d424 100755
--- a/scripts/deprecated-library-user-count.sh
+++ b/scripts/deprecated-library-user-count.sh
@@ -7,7 +7,8 @@ cd /var/db/pkg
for lib in $LIBS; do
echo -n "${lib}: "
- grep "${lib}" */*/NEEDED.ELF.2 |wc -l
+ lib_owner=`qfile -eCq /usr/lib/${lib}*.so`
+ grep "${lib}" */*/NEEDED.ELF.2 --exclude="${lib_owner}/NEEDED.ELF.2" |wc -l
done
popd >/dev/null