Displaying 1 result from an estimated 1 matches for "rhev_helper".
2011 Jan 26
1
[PATCH] Replace File::Path's remove_tree
...die user_message(__x("Unable to remove {path} while ".
+ "removing temporary directory: {error}",
+ path => $dir,
+ error => $!));
+}
+
# Must be called in rhev_helper context
sub _cleanup
{
@@ -380,25 +414,7 @@ sub _cleanup
return unless (defined($tmpdir));
- my $errors = [];
- eval {
- remove_tree($tmpdir, { error => \$errors });
- };
- push(@$errors, $@) if ($@);
-
- if (@$errors > 0) {
- foreach my $error (@$error...