[interchange-cvs] interchange - racke modified lib/Vend/Util.pm
interchange-core@icdevgroup.org
interchange-core@icdevgroup.org
Thu Mar 6 12:13:00 2003
User: racke
Date: 2003-03-06 17:12:41 GMT
Modified: lib/Vend Util.pm
Log:
fixed auto_create_dir feature
Revision Changes Path
2.53 +3 -3 interchange/lib/Vend/Util.pm
rev 2.53, prev_rev 2.52
Index: Util.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Util.pm,v
retrieving revision 2.52
retrieving revision 2.53
diff -u -r2.52 -r2.53
--- Util.pm 1 Mar 2003 17:51:37 -0000 2.52
+++ Util.pm 6 Mar 2003 17:12:41 -0000 2.53
@@ -1,6 +1,6 @@
# Vend::Util - Interchange utility functions
#
-# $Id: Util.pm,v 2.52 2003/03/01 17:51:37 mheins Exp $
+# $Id: Util.pm,v 2.53 2003/03/06 17:12:41 racke Exp $
#
# Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
#
@@ -85,7 +85,7 @@
use Safe;
use subs qw(logError logGlobal);
use vars qw($VERSION @EXPORT @EXPORT_OK);
-$VERSION = substr(q$Revision: 2.52 $, 10);
+$VERSION = substr(q$Revision: 2.53 $, 10);
my $Eval_routine;
my $Eval_routine_file;
@@ -692,7 +692,7 @@
## Need to make this OS-independent, requires File::Spec support
$dir =~ s:[\r\n]::g; # Just in case
- $dir =~ s:(.*)/.*:: or $dir = '';
+ $dir =~ s:(.*)/.*:$1: or $dir = '';
if($dir and ! -d $dir) {
File::Path::mkpath($dir);
}