[interchange-cvs] interchange - heins modified lib/Vend/Config.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Tue Nov 29 15:28:36 EST 2005
User: heins
Date: 2005-11-29 20:28:36 GMT
Modified: lib/Vend Tag: STABLE_5_4-branch Config.pm
Log:
* Merge changes from devel branch (no hard requirement for Set::Crontab).
Revision Changes Path
No revision
No revision
2.188.2.1 +12 -2 interchange/lib/Vend/Config.pm
rev 2.188.2.1, prev_rev 2.188
Index: Config.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Config.pm,v
retrieving revision 2.188
retrieving revision 2.188.2.1
diff -u -r2.188 -r2.188.2.1
--- Config.pm 7 Nov 2005 21:53:55 -0000 2.188
+++ Config.pm 29 Nov 2005 20:28:35 -0000 2.188.2.1
@@ -1,6 +1,6 @@
# Vend::Config - Configure Interchange
#
-# $Id: Config.pm,v 2.188 2005/11/07 21:53:55 jon Exp $
+# $Id: Config.pm,v 2.188.2.1 2005/11/29 20:28:35 mheins Exp $
#
# Copyright (C) 2002-2005 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -52,7 +52,7 @@
use Vend::Data;
use Vend::Cron;
-$VERSION = substr(q$Revision: 2.188 $, 10);
+$VERSION = substr(q$Revision: 2.188.2.1 $, 10);
my %CDname;
my %CPname;
@@ -3874,6 +3874,16 @@
my($var, $value) = @_;
return '' unless $value =~ /\s/ and $value =~ /[a-zA-Z]/;
+
+ unless($Vend::Cron::Loaded) {
+ config_warn(
+ "Cannot use %s unless %s module loaded%s",
+ 'crontab',
+ 'Vend::Cron',
+ ' (missing Set::Crontab?)',
+ );
+ return '';
+ }
return Vend::Cron::read_cron($value);
}
More information about the interchange-cvs
mailing list