[Pkg-shadow-commits] r2554 - debian/trunk/tests/common

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Mon Mar 16 23:21:16 UTC 2009


Author: nekral-guest
Date: 2009-03-16 23:21:15 +0000 (Mon, 16 Mar 2009)
New Revision: 2554

Modified:
   debian/trunk/tests/common/config.sh
Log:
Ignore the .svn directories in the config directories.


Modified: debian/trunk/tests/common/config.sh
===================================================================
--- debian/trunk/tests/common/config.sh	2009-03-16 23:20:43 UTC (rev 2553)
+++ debian/trunk/tests/common/config.sh	2009-03-16 23:21:15 UTC (rev 2554)
@@ -7,7 +7,7 @@
 save_config ()
 {
 	[ ! -d tmp ] && mkdir tmp
-	find config -depth -type f | sed -e 's/config\///' |
+	find config -depth -path "*/.svn/*" -prune -o -type f -print | sed -e 's/config\///' |
 	while read file
 	do
 		mkdir -p "tmp/$(dirname "$file")"
@@ -18,7 +18,7 @@
 # Copy the config files from config to the system
 change_config ()
 {
-	find config -depth -type f | sed -e 's/config\///' |
+	find config -depth -path "*/.svn/*" -prune -o -type f -print | sed -e 's/config\///' |
 	while read file
 	do
 		cp -f "config/$file" "/$file"
@@ -29,7 +29,7 @@
 # The config files must be saved before with save_config ().
 restore_config ()
 {
-	find config -depth -type f | sed -e 's/config\///' |
+	find config -depth -path "*/.svn/*" -prune -o -type f -print | sed -e 's/config\///' |
 	while read file
 	do
 		[ -f "tmp/$file" ] && \




More information about the Pkg-shadow-commits mailing list