search for: path_st

Displaying 3 results from an estimated 3 matches for "path_st".

Did you mean: path_str
2011 Jan 17
1
[PATCH] Unconditionally always rebuild the transfer iso
...("Unable to stat {path}: {error}", - path => $self->{path}, error => $!); - - if ($iso_st->mtime > $config_st->mtime) { - my $rebuild = 0; - - my %dirs; - foreach my $path (keys(%paths)) { - my $path_st = stat($path); - - if ($path_st->mtime > $iso_st->mtime) { - $rebuild = 1; - last; - } - - # Also check if the containing directory has been updated. This - # will pick up the case where a fil...
2010 May 04
1
[PATCH] Config: Don't require all referenced software to be available
...need to re-create if the iso file is newer than the config file - return $iso_path if ($iso_st->mtime > $config_st->mtime); + if ($iso_st->mtime > $config_st->mtime) { + my $rebuild = 0; + + foreach my $path (keys(%paths)) { + my $path_st = stat($path); + + if ($path_st->mtime > $iso_st->mtime) { + $rebuild = 1; + last; + } + } + + return $iso_path if (!$rebuild); + } } # Re-create the transfer iso @@ -247,6 +257,15...
2010 May 07
1
[PATCH] Config: Check timestamps on directories when rebuilding transfer iso
...0dae 100644 --- a/lib/Sys/VirtV2V/Config.pm +++ b/lib/Sys/VirtV2V/Config.pm @@ -154,6 +154,7 @@ sub get_transfer_iso if ($iso_st->mtime > $config_st->mtime) { my $rebuild = 0; + my %dirs; foreach my $path (keys(%paths)) { my $path_st = stat($path); @@ -161,6 +162,19 @@ sub get_transfer_iso $rebuild = 1; last; } + + # Also check if the containing directory has been updated. This + # will pick up the case where a file with an old timestamp...