[23394] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r23048 - trunk/debathena/scripts

daemon@ATHENA.MIT.EDU (andersk@MIT.EDU)
Sun Jun 29 20:20:46 2008

Date: Sun, 29 Jun 2008 20:20:37 -0400 (EDT)
From: andersk@MIT.EDU
Message-Id: <200806300020.UAA28194@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: andersk
Date: 2008-06-29 20:20:36 -0400 (Sun, 29 Jun 2008)
New Revision: 23048

Modified:
   trunk/debathena/scripts/clean-schroots
Log:
Match temporary sbuild chroots with a more specific pattern.


Modified: trunk/debathena/scripts/clean-schroots
===================================================================
--- trunk/debathena/scripts/clean-schroots	2008-06-29 04:16:21 UTC (rev 23047)
+++ trunk/debathena/scripts/clean-schroots	2008-06-30 00:20:36 UTC (rev 23048)
@@ -10,13 +10,13 @@
 for i in $(
     for dir in "$VG" /var/lib/schroot/mount /var/lib/schroot/session; do
         cd "$dir"
-        for i in *-*-sbuild-*-*-*-*-*; do
+        for i in *-sbuild-????????-????-????-????-????????????; do
             echo "$i"
         done
     done | \
     sort -u | grep -v "\*"
 ); do
-    schroot -ec "$(echo "$i" | sed 's/-cow$//')"
+    schroot -ec "$i"
     if [ "$1" = "-f" ]; then
         tac /proc/mounts | cut -d" " -f2 | fgrep "/var/lib/schroot/mount/$i" | xargs -rn1 umount -l
         lvremove -f "$VG/$i"


home help back first fref pref prev next nref lref last post