OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-registry Date: 22-Oct-2006 19:10:43
Branch: HEAD Handle: 2006102218104300
Modified files:
openpkg-registry register.sh
Log:
workaround shell expansion problems
Summary:
Revision Changes Path
1.57 +22 -6 openpkg-registry/register.sh
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-registry/register.sh
============================================================================
$ cvs diff -u -r1.56 -r1.57 register.sh
--- openpkg-registry/register.sh 16 Oct 2006 08:54:33 -0000 1.56
+++ openpkg-registry/register.sh 22 Oct 2006 17:10:43 -0000 1.57
@@ -29,8 +29,8 @@
# program name, version and date
progname="register"
-progvers="1.0.0"
-progdate="16-Oct-2006"
+progvers="1.0.1"
+progdate="2006-10-22"
# determine path to OpenPKG instance
PREFIX="@l_prefix@"
@@ -270,7 +270,11 @@
preparation()
{
if [ ".$REGISTRY_MODE" = .wipe ]; then
- [ ".$REGISTRY_PREP" != . -f $REGISTRY_PREP ] && cat </dev/null
>$REGISTRY_PREP
+ if [ ".$REGISTRY_PREP" != . ]; then
+ if [ -f $REGISTRY_PREP ]; then
+ cat </dev/null >$REGISTRY_PREP
+ fi
+ fi
return
fi
@@ -338,7 +342,11 @@
transaction()
{
if [ ".$REGISTRY_MODE" = .wipe ]; then
- [ ".$REGISTRY_TRAN" != . -f $REGISTRY_TRAN ] && cat </dev/null
>$REGISTRY_TRAN
+ if [ ".$REGISTRY_TRAN" != . ]; then
+ if [ -f $REGISTRY_TRAN ]; then
+ cat </dev/null >$REGISTRY_TRAN
+ fi
+ fi
return
fi
@@ -385,7 +393,11 @@
utilization()
{
if [ ".$REGISTRY_MODE" = .wipe ]; then
- [ ".$REGISTRY_UTIL" != . -f $REGISTRY_UTIL ] && cat </dev/null
>$REGISTRY_UTIL
+ if [ ".$REGISTRY_UTIL" != . ]; then
+ if [ -f $REGISTRY_UTIL ]; then
+ cat </dev/null >$REGISTRY_UTIL
+ fi
+ fi
return
fi
@@ -435,7 +447,11 @@
interaction()
{
if [ ".$REGISTRY_MODE" = .wipe ]; then
- [ ".$REGISTRY_CONF" != . -f $REGISTRY_CONF ] && cat </dev/null
>$REGISTRY_CONF
+ if [ ".$REGISTRY_CONF" != . ]; then
+ if [ -f $REGISTRY_CONF ]; then
+ cat </dev/null >$REGISTRY_CONF
+ fi
+ fi
return
fi
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]