OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-tools Date: 12-Aug-2005 13:34:27
Branch: HEAD Handle: 2005081212342700
Modified files:
openpkg-tools/cmd dev.sh
Log:
prohibit use of "rpm --recompile" inside development shell (equally
evil as --rebuild)
Summary:
Revision Changes Path
1.58 +1 -0 openpkg-tools/cmd/dev.sh
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-tools/cmd/dev.sh
============================================================================
$ cvs diff -u -r1.57 -r1.58 dev.sh
--- openpkg-tools/cmd/dev.sh 12 Aug 2005 09:56:32 -0000 1.57
+++ openpkg-tools/cmd/dev.sh 12 Aug 2005 11:34:27 -0000 1.58
@@ -320,6 +320,7 @@
for e in "$@"; do
case $e in
--rebuild) error "$0:ERROR: use of \"rpm --rebuild\" is
disabled here to avoid destruction"; return 1 ;;
+ --recompile) error "$0:ERROR: use of \"rpm --recompile\" is
disabled here to avoid destruction"; return 1 ;;
esac
done
if [ ".${RPMCMD}" = . ]; then
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]