summaryrefslogtreecommitdiffstats
path: root/urpm/parallel.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/parallel.pm')
-rw-r--r--urpm/parallel.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/urpm/parallel.pm b/urpm/parallel.pm
index e5dff4ff..dcc68dce 100644
--- a/urpm/parallel.pm
+++ b/urpm/parallel.pm
@@ -54,4 +54,16 @@ sub resolve_dependencies {
$urpm->{parallel_handler}->parallel_resolve_dependencies($file, $urpm, $state, $requested, %options);
}
+#- remove packages from node as remembered according to resolving done.
+sub remove {
+ my ($urpm, $remove, %options) = @_;
+ my $state = {};
+ my $callback = sub { $urpm->{fatal}(1, "internal distributed remove fatal error") };
+ $urpm->{parallel_handler}->parallel_find_remove($urpm, $state, $remove, %options,
+ callback_notfound => undef,
+ callback_fuzzy => $callback,
+ callback_base => $callback,
+ );
+}
+
1;