diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-02 05:26:52 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-02 05:26:52 +0000 |
commit | 80cc38f20f2fde216705d8f7499df521666d4b27 (patch) | |
tree | 559713bab06753ea577a837fc707a91e9c892d9b /urpm/sys.pm | |
parent | d247558cf3cac28d09814f04625f4c2f02e3d070 (diff) | |
download | urpmi-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/sys.pm')
-rw-r--r-- | urpm/sys.pm | 5 |
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; |