aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Urpmi.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Iurt/Urpmi.pm')
-rw-r--r--lib/Iurt/Urpmi.pm14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm
index 5d8fadc..99442dc 100644
--- a/lib/Iurt/Urpmi.pm
+++ b/lib/Iurt/Urpmi.pm
@@ -246,9 +246,10 @@ sub add_packages {
sleep 30;
$self->{wait_limit}++;
if ($self->{wait_limit} > 10) {
- $self->{wait_limit} = 0;
- system(qq(sudo pkill -9 urpmi &>/dev/null));
- return;
+ #$self->{wait_limit} = 0;
+ # <mrl> We can't shoot such command, it's too powerfull.
+ #system(qq(sudo pkill -9 urpmi &>/dev/null));
+ return 0;
}
1;
} },)) {
@@ -373,8 +374,11 @@ sub wait_urpmi {
plog("WARNING: urpmi database locked, waiting...") if $run->{debug};
sleep 30;
$self->{wait_limit}++;
- if ($self->{wait_limit} > 8) {
- $self->{wait_limit} = 0; system(qq(sudo pkill -9 urpmi &>/dev/null));
+ if ($self->{wait_limit} > 8) {
+ #$self->{wait_limit} = 0;
+ # <mrl> We can't shoot such command, it's too powerfull.
+ #system(qq(sudo pkill -9 urpmi &>/dev/null));
+ return 0;
}
}