[interchange-cvs] interchange - jon modified lib/Vend/Config.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Fri Jul 16 19:49:07 EDT 2004
User: jon
Date: 2004-07-16 23:49:06 GMT
Modified: lib/Vend Config.pm
Log:
Fixed bug that prevented catalog-level Sub definitions from being
recognized in CodeDef Routine directives.
Fixed misspelling in error message.
Revision Changes Path
2.142 +4 -4 interchange/lib/Vend/Config.pm
rev 2.142, prev_rev 2.141
Index: Config.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Config.pm,v
retrieving revision 2.141
retrieving revision 2.142
diff -u -u -r2.141 -r2.142
--- Config.pm 5 Jun 2004 18:21:06 -0000 2.141
+++ Config.pm 16 Jul 2004 23:49:06 -0000 2.142
@@ -1,6 +1,6 @@
# Vend::Config - Configure Interchange
#
-# $Id: Config.pm,v 2.141 2004/06/05 18:21:06 mheins Exp $
+# $Id: Config.pm,v 2.142 2004/07/16 23:49:06 jon Exp $
#
# Copyright (C) 2002-2003 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -48,7 +48,7 @@
use Vend::File;
use Vend::Data;
-$VERSION = substr(q$Revision: 2.141 $, 10);
+$VERSION = substr(q$Revision: 2.142 $, 10);
my %CDname;
my %CPname;
@@ -1684,7 +1684,7 @@
$c->{$name} = $C->{Sub}{$sub};
}
- if(! $c->{name} and $Global::GlobalSub) {
+ if(! $c->{$name} and $Global::GlobalSub) {
$c->{$name} = $Global::GlobalSub->{$sub};
}
}
@@ -1692,7 +1692,7 @@
$c->{$name} = $sub;
}
elsif(! $c->{$name}) {
- $@ = errmsg("Mapped %s action routine '%s' is non-existant.", $var, $sub);
+ $@ = errmsg("Mapped %s action routine '%s' is non-existent.", $var, $sub);
}
}
elsif ( ! $mapped and $sub !~ /^sub\b/) {
More information about the interchange-cvs
mailing list