summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/sys.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm/sys.pm b/urpm/sys.pm
index b94aee48..8c7ffb97 100644
--- a/urpm/sys.pm
+++ b/urpm/sys.pm
@@ -135,8 +135,9 @@ sub apply_delta_rpm {
-e $deltarpm or return 0;
my $rpm = qx(rpm -qp --qf '%{name}-%{version}-%{release}.%{arch}.rpm' '$deltarpm');
$rpm or return 0;
- warn "[$APPLYDELTARPM -vp $deltarpm $rpm]\n";
- (!system($APPLYDELTARPM, '-vp', $deltarpm, $rpm)) ? $rpm : 0;
+ unlink $rpm;
+ system($APPLYDELTARPM, '-vp', $deltarpm, $rpm);
+ -e $rpm ? $rpm : '';
}
1;