[interchange-cvs] interchange - jon modified lib/Vend/Interpolate.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Sat Aug 21 19:02:49 EDT 2004


User:      jon
Date:      2004-08-21 23:02:49 GMT
Modified:  lib/Vend Interpolate.pm
Log:
Document non-obvious reasoning behind recent change Mike made (and
explained to me).

Revision  Changes    Path
2.220     +6 -2      interchange/lib/Vend/Interpolate.pm


rev 2.220, prev_rev 2.219
Index: Interpolate.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.219
retrieving revision 2.220
diff -u -u -r2.219 -r2.220
--- Interpolate.pm	28 Jul 2004 18:21:41 -0000	2.219
+++ Interpolate.pm	21 Aug 2004 23:02:48 -0000	2.220
@@ -1,6 +1,6 @@
 # Vend::Interpolate - Interpret Interchange tags
 # 
-# $Id: Interpolate.pm,v 2.219 2004/07/28 18:21:41 mheins Exp $
+# $Id: Interpolate.pm,v 2.220 2004/08/21 23:02:48 jon Exp $
 #
 # Copyright (C) 2002-2003 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -28,7 +28,7 @@
 require Exporter;
 @ISA = qw(Exporter);
 
-$VERSION = substr(q$Revision: 2.219 $, 10);
+$VERSION = substr(q$Revision: 2.220 $, 10);
 
 @EXPORT = qw (
 
@@ -1323,7 +1323,11 @@
 sub conditional {
 	my($base,$term,$operator,$comp, @addl) = @_;
 	my $reverse;
+
+	# Only lowercase the first word-characters part of the conditional so that
+	# file-T doesn't turn into file-t (which is something different).
 	$base =~ s/(\w+)/\L$1/;
+
 	$base =~ s/^!// and $reverse = 1;
 	my ($op, $status);
 	my $noop;








More information about the interchange-cvs mailing list