From 9c4680e8db3c9139db6c400687541f61326f7506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ekin=20Mero=C4=9Flu?= Date: Thu, 9 Apr 2009 06:25:58 +0000 Subject: [PATCH] =?UTF-8?q?2009-04-09=20Ozan=20=C3=87a=C4=9Flayan=20=20=20=20=20=20=20=20=20=20*=20(scripts/revdep-re?= =?UTF-8?q?build):=20Ignore=20/opt/ptsp=20during=20library=20and=20binary?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20search.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeLog | 4 ++++ scripts/revdep-rebuild | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 60e9d823..e7c9f5c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-04-09 Ozan Çağlayan + * (scripts/revdep-rebuild): Ignore /opt/ptsp during library and binary + search. + 2009-03-30 Faik Uygur * Fix a bug in new "reverseDependencyUpdate" tag, where it forces to install all reverseDeps that are also not installed diff --git a/scripts/revdep-rebuild b/scripts/revdep-rebuild index 24dac09f..07975ece 100755 --- a/scripts/revdep-rebuild +++ b/scripts/revdep-rebuild @@ -9,6 +9,7 @@ LD_LIBRARY_MASK="libodbcinst.so libodbc.so libjava.so libjvm.so" # List of directories to be searched (feel free to edit it) # Note /usr/libexec and /usr/local/subprefix cotradicts FHS, but are present SEARCH_DIRS="/lib /bin /sbin /usr/lib /usr/bin /usr/sbin /usr/libexec /usr/local /usr/qt* /usr/kde/*/bin /usr/lib/MozillaFirefox /usr/kde/*/lib /usr/*-*-linux-gnu /opt" +EXCLUDE_DIRS="/opt/ptsp" # Base of temporary files names. LIST=~/.revdep-rebuild @@ -131,7 +132,11 @@ if [ -f $LIST.1_files ] ; then echo " using existing $LIST.1_files." else set_trap "$LIST.1_files" - find $SEARCH_DIRS -type f \( -perm /+u+x -o -name '*.so' -o -name '*.so.*' \) 2>/dev/null >$LIST.1_files + EXCLUDED_DIRS= + for d in $EXCLUDE_DIRS; do + EXCLUDED_DIRS+="-path $d -prune -o " + done + find $SEARCH_DIRS $EXCLUDED_DIRS -type f \( -perm /+u+x -o -name '*.so' -o -name '*.so.*' \) 2>/dev/null >$LIST.1_files echo -e " done.\n ($LIST.1_files)" fi