[interchange-cvs] interchange - heins modified lib/Vend/Config.pm

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Mon Aug 12 15:06:01 2002


User:      heins
Date:      2002-08-12 19:05:13 GMT
Modified:  lib/Vend Config.pm
Log:
* Modernize copy and lowercasing of variable.

Revision  Changes    Path
2.66      +3 -3      interchange/lib/Vend/Config.pm


rev 2.66, prev_rev 2.65
Index: Config.pm
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /var/cvs/interchange/lib/Vend/Config.pm,v
retrieving revision 2.65
retrieving revision 2.66
diff -u -r2.65 -r2.66
--- Config.pm	11 Aug 2002 16:12:40 -0000	2.65
+++ Config.pm	12 Aug 2002 19:05:12 -0000	2.66
@@ -1,6 +1,6 @@
 # Vend::Config - Configure Interchange
 #
-# $Id: Config.pm,v 2.65 2002/08/11 16:12:40 mheins Exp $
+# $Id: Config.pm,v 2.66 2002/08/12 19:05:12 mheins Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -44,7 +44,7 @@
 use Vend::Parse;
 use Vend::Util;
=20
-$VERSION =3D substr(q$Revision: 2.65 $, 10);
+$VERSION =3D substr(q$Revision: 2.66 $, 10);
=20
 my %CDname;
=20
@@ -1160,7 +1160,7 @@
 	undef $C;
=20
 	foreach my $d (@$directives) {
-		($directive =3D $d->[0]) =3D~ tr/A-Z/a-z/;
+		$directive =3D lc $d->[0];
 		$CDname{$directive} =3D $d->[0];
 		$parse =3D get_parse_routine($d->[1]);
 		$parse{$directive} =3D $parse;