summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-02 05:26:52 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-02 05:26:52 +0000
commit80cc38f20f2fde216705d8f7499df521666d4b27 (patch)
tree559713bab06753ea577a837fc707a91e9c892d9b /urpm
parentd247558cf3cac28d09814f04625f4c2f02e3d070 (diff)
downloadurpmi-80cc38f20f2fde216705d8f7499df521666d4b27.tar
urpmi-80cc38f20f2fde216705d8f7499df521666d4b27.tar.gz
urpmi-80cc38f20f2fde216705d8f7499df521666d4b27.tar.bz2
urpmi-80cc38f20f2fde216705d8f7499df521666d4b27.tar.xz
urpmi-80cc38f20f2fde216705d8f7499df521666d4b27.zip
Exit codes for applydeltarpm suck
Diffstat (limited to 'urpm')
-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;