# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: gpg,v 1.3 2006/05/08 18:16:33 mlhuang Exp $
+# $Id: packages,v 1.1 2006/05/18 17:36:39 mlhuang Exp $
#
# Source function library and configuration
# Sign all RPMS. setsid detaches rpm from the terminal,
# allowing the (hopefully blank) GPG password to be
# entered from stdin instead of /dev/tty.
- packages=$repository/*.rpm
- if [ -n $packages ] ; then
+ packages=
+ for package in $repository/*.rpm ; do
+ packages="$packages $package"
+ done
+ if [ -n "$packages" ] ; then
echo | setsid rpm \
--define "_signature gpg" \
--define "_gpg_path /etc/planetlab" \