Permalink
Browse files

* Fix bug in my commit found by Racke

  • Loading branch information...
perusionmike committed Jul 28, 2008
1 parent ce3c1e0 commit eadb5822513a933b3aed61ee0fec739efec01e3c
Showing with 11 additions and 6 deletions.
  1. +9 −3 lib/Vend/Cron.pm
  2. +2 −3 lib/Vend/Interpolate.pm
View
@@ -1,6 +1,6 @@
# Vend::Cron - Determine tasks to run based on time
#
-# $Id: Cron.pm,v 2.2.2.1 2007-03-30 12:15:27 pajamian Exp $
+# $Id: Cron.pm,v 2.2.2.2 2008-07-28 20:49:13 mheins Exp $
#
# Copyright (C) 2002-2005 Interchange Development Group
#
@@ -22,7 +22,7 @@
package Vend::Cron;
use vars qw($VERSION);
-$VERSION = substr(q$Revision: 2.2.2.1 $, 10);
+$VERSION = substr(q$Revision: 2.2.2.2 $, 10);
use POSIX qw(strftime);
use Vend::Util;
@@ -31,7 +31,13 @@ use strict;
no warnings qw(uninitialized);
-use Set::Crontab;
+BEGIN {
+ eval {
+ require Set::Crontab;
+ import Set::Crontab;
+ $Vend::Cron::Loaded = 1;
+ };
+}
my @periods = (
[0 .. 59],
View
@@ -1,6 +1,6 @@
# Vend::Interpolate - Interpret Interchange tags
#
-# $Id: Interpolate.pm,v 2.261.2.7 2008-06-16 14:39:57 mheins Exp $
+# $Id: Interpolate.pm,v 2.261.2.8 2008-07-28 20:49:13 mheins Exp $
#
# Copyright (C) 2002-2005 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -28,7 +28,7 @@ package Vend::Interpolate;
require Exporter;
@ISA = qw(Exporter);
-$VERSION = substr(q$Revision: 2.261.2.7 $, 10);
+$VERSION = substr(q$Revision: 2.261.2.8 $, 10);
@EXPORT = qw (
@@ -5847,7 +5847,6 @@ sub levies {
if(not $sort = $l->{sort}) {
$sort = $type eq 'handling' ? 100 : 500;
}
- $l->{description} = '';
my @modes = split /\0/, $mode;
for my $m (@modes) {

0 comments on commit eadb582

Please sign in to comment.