From 4fed39c1e50acd0d1fdebdeb1e46543695d67f77 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 22 Jun 2012 15:16:34 +0000 Subject: [PATCH] Fix problem where 'copyIfNewer' was actually 'copyIfOlder' git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13153 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 6daaac690..56e9d388f 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -4841,7 +4841,7 @@ sub cpNetbootImages { sub copyIfNewer { my $source = shift; my $dest = shift; - if (! -e $dest or -C $source > -C $dest) { + if (! -e $dest or -C $source < -C $dest) { return copy($source,$dest); } return 1;