diff options
author | Mart Raudsepp <leio@gentoo.org> | 2010-08-21 17:03:10 +0300 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2010-08-21 17:03:10 +0300 |
commit | d08bfa3692591e434a61905cb52b855a3826b5d0 (patch) | |
tree | 850712c3df4949de37001c2ecbe0aa91a6777416 /scripts | |
parent | gnome-base/librsvg: add patch to remove automagic dep on gtk+:3 (diff) | |
download | gnome-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-x | scripts/deprecated-library-user-count.sh | 3 |
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 |