git://git.onelab.eu
/
sliceimage.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create branch
[sliceimage.git]
/
build.sh
diff --git
a/build.sh
b/build.sh
index
f7db0c9
..
9bb91dc
100755
(executable)
--- a/
build.sh
+++ b/
build.sh
@@
-8,7
+8,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2005 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2005 The Trustees of Princeton University
#
-# $Id: build.sh,v 1.
2 2005/10/01 18:20:08
mlhuang Exp $
+# $Id: build.sh,v 1.
4.2.1 2006/05/26 15:27:44
mlhuang Exp $
#
# Get the production /etc/yum.conf file. XXX When MAs begin deploying
#
# Get the production /etc/yum.conf file. XXX When MAs begin deploying
@@
-34,6
+34,12
@@
EOF
# And replace them with a section for the RPMS that were just built
yum-arch $(dirname $RPM_BUILD_DIR)/RPMS
# And replace them with a section for the RPMS that were just built
yum-arch $(dirname $RPM_BUILD_DIR)/RPMS
+ createrepo -g yumgroups.xml $(dirname $RPM_BUILD_DIR)/RPMS || :
+ # If run under sudo, allow user to delete the headers/ and
+ # repodata/ directories.
+ if [ -n "$SUDO_USER" ] ; then
+ chown -R $SUDO_USER $(dirname $RPM_BUILD_DIR)/RPMS
+ fi
cat >> yum.conf <<EOF
[Bootstrap]
name=Bootstrap RPMS -- $(dirname $RPM_BUILD_DIR)/RPMS/
cat >> yum.conf <<EOF
[Bootstrap]
name=Bootstrap RPMS -- $(dirname $RPM_BUILD_DIR)/RPMS/
@@
-114,6
+120,9
@@
rpm --root $VROOT --initdb
# Go, baby, go
yum -c yum.conf --installroot=$VROOT -y groupinstall VServer
# Go, baby, go
yum -c yum.conf --installroot=$VROOT -y groupinstall VServer
+# Clean yum cache
+yum -c yum.conf --installroot=$VROOT -y clean all
+
# Remove stale RPM locks
rm -f $VROOT/var/lib/rpm/__db*
# Remove stale RPM locks
rm -f $VROOT/var/lib/rpm/__db*