# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: packages,v 1.1 2006/05/18 17:36:39 mlhuang Exp $
+# $Id: packages,v 1.3 2006/06/23 20:29:22 mlhuang Exp $
#
# Source function library and configuration
. /etc/plc.d/functions
. /etc/planetlab/plc_config
+# Be verbose
+set -x
+
case "$1" in
start)
MESSAGE=$"Signing node packages"
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