[maemo-commits] [maemo-commits] r18960 - in projects/haf/trunk/osso-app-killer: debian src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Jul 23 14:36:14 EEST 2009
Author: schulhof
Date: 2009-07-23 14:36:13 +0300 (Thu, 23 Jul 2009)
New Revision: 18960

Modified:
   projects/haf/trunk/osso-app-killer/debian/changelog
   projects/haf/trunk/osso-app-killer/src/osso-clean-mmc.sh
Log:
Correctly remove files whose names contain spaces.

Modified: projects/haf/trunk/osso-app-killer/debian/changelog
===================================================================
--- projects/haf/trunk/osso-app-killer/debian/changelog	2009-07-23 10:36:50 UTC (rev 18959)
+++ projects/haf/trunk/osso-app-killer/debian/changelog	2009-07-23 11:36:13 UTC (rev 18960)
@@ -1,3 +1,10 @@
+osso-app-killer (1.31-1) unstable; urgency=low
+
+  * Set IFS to exactly \n so as not to fail to remove files whose names contain a space
+    during CUD.
+
+ -- Gabriel Schulhof <gabriel.schulhof at nokia.com>  Wed, 22 Jul 2009 16:57:24 +0300
+
 osso-app-killer (1.30-1) unstable; urgency=low
 
   * Skip over 'modest/(server_)?accounts' during RFS

Modified: projects/haf/trunk/osso-app-killer/src/osso-clean-mmc.sh
===================================================================
--- projects/haf/trunk/osso-app-killer/src/osso-clean-mmc.sh	2009-07-23 10:36:50 UTC (rev 18959)
+++ projects/haf/trunk/osso-app-killer/src/osso-clean-mmc.sh	2009-07-23 11:36:13 UTC (rev 18960)
@@ -4,18 +4,24 @@
 
 set -x
 
+# Set IFS to just newline
+IFS='
+'
+
 DIR_TO_CLEAR=${HOME}/MyDocs
 
 cd ${HOME}/MyDocs
 for rmable in $(ls -A); do
-  rm -rf $rmable
+  rm -rf "$rmable"
 done
 
 cd ${HOME}
 for rmable in $(ls -A); do
  if test "x${rmable}" != "xMyDocs"; then
-   rm -rf $rmable
+   rm -rf "$rmable"
  fi
 done
 
+unset IFS
+
 cd ${OLD_PWD}

More information about the maemo-commits mailing list