- MyPLC 0.4 RC2
[myplc.git] / plc.d / packages
index a19422f..b85c9a7 100755 (executable)
@@ -7,7 +7,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: packages,v 1.2 2006/05/18 22:58:20 mlhuang Exp $
+# $Id: packages,v 1.4 2006/07/19 14:15:15 mlhuang Exp $
 #
 
 # Source function library and configuration
@@ -40,9 +40,9 @@ case "$1" in
                check
            fi
 
-           # Update yum metadata. createrepo sometimes leaves behind
-           # an .olddata file accidentally.
-           rm -rf $repository/.olddata
+           # Update yum metadata. yum-arch createrepo sometimes leaves behind
+           # .oldheaders and .olddata directories accidentally.
+           rm -rf $repository/{.oldheaders,.olddata}
            yum-arch $repository
            check
            createrepo -g yumgroups.xml $repository