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