Skip to Content.
Sympa Menu

sm-sorcery - [SM-Sorcery]FIND_CHECK patch

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: Peter Schneider-Kamp <peter AT schneider-kamp.de>
  • To: sm-sorcery <sm-sorcery AT lists.ibiblio.org>
  • Subject: [SM-Sorcery]FIND_CHECK patch
  • Date: Sat, 31 Aug 2002 16:36:17 +0200

Hi again!

I think special casing the xfree86* spells in cast
is very ugly.

This patch makes it possible to specify FIND_CHECK=off
in xfree86*/DETAILS instead.

This approach could be used for all kinds of checks,
s.t. spell maintainers can switch off certain kinds
of checks on a per spell basis.

What do you think? Should I extend it to the other
checks?

Greetz
Peter
--
Peter Schneider-Kamp mailto:peter AT schneider-kamp.de
Deliusstrasse 9 http://schneider-kamp.de
D-52064 Aachen mobile phone: ++49 178 495 1040
Index: usr/sbin/cast
===================================================================
RCS file: /cvsroot/sourcemage/sourcemage/sorcery/usr/sbin/cast,v
retrieving revision 1.23
diff -c -r1.23 cast
*** usr/sbin/cast 2002/08/26 01:57:32 1.23
--- usr/sbin/cast 2002/08/31 14:34:49
***************
*** 389,402 ****


find_check() { (

! if [ "$FIND_CHECK" == "off" ] ||
! [ "$1" == "xfree86" ] ||
! [ "$1" == "xfree86-custom" ]; then
return
fi

- SPELL=$1
VERSION=`installed_version $SPELL`
I_LOG=$INSTALL_LOGS/$SPELL-$VERSION
FIND_STATUS=0
--- 372,386 ----


find_check() { (
+
+ SPELL=$1

! run_details
!
! if [ "$FIND_CHECK" == "off" ]; then
return
fi

VERSION=`installed_version $SPELL`
I_LOG=$INSTALL_LOGS/$SPELL-$VERSION
FIND_STATUS=0


  • [SM-Sorcery]FIND_CHECK patch, Peter Schneider-Kamp, 08/31/2002

Archive powered by MHonArc 2.6.24.

Top of Page