OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-tools Date: 28-Apr-2004 11:22:19
Branch: HEAD Handle: 2004042810221900
Modified files:
openpkg-tools/cmd dev.sh
Log:
change package command to "no param clears setting and reverts to
automatic detection" logic
Summary:
Revision Changes Path
1.21 +4 -7 openpkg-tools/cmd/dev.sh
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-tools/cmd/dev.sh
============================================================================
$ cvs diff -u -r1.20 -r1.21 dev.sh
--- openpkg-tools/cmd/dev.sh 28 Apr 2004 08:55:38 -0000 1.20
+++ openpkg-tools/cmd/dev.sh 28 Apr 2004 09:22:19 -0000 1.21
@@ -571,10 +571,7 @@
echo "${package}"
else
package="$1"
- if [ ".${package}" = . ]; then
- OPENPKG_SPEC=""
- cd "${OPENPKG_WORK}/$S"
- else
+ if [ ".${package}" != . ]; then
if [ ! -d "${OPENPKG_WORK}/$S" ]; then
error "${OPENPKG_WORK}/$S directory not found"
return 1
@@ -585,10 +582,10 @@
error "${OPENPKG_WORK}/$S/${package} directory not found"
return 1
fi
-
- OPENPKG_SPEC="${package}"
- cd "${OPENPKG_WORK}/$S/${package}"
+ builtin cd "${OPENPKG_WORK}/$S/${package}"
fi
+ OPENPKG_SPEC="${package}"
+ cd .
fi
}
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]