summaryrefslogtreecommitdiffstats
path: root/urpm/sys.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-02 08:54:53 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-02 08:54:53 +0000
commit01bbdf3cd5876020eeca86f3a00c505a8abafd9d (patch)
treed83619d499b09577da037f94a0205be978516d42 /urpm/sys.pm
parent6fbc3cbea8cb4180d0f14f7988c969b0c20cfc8a (diff)
downloadurpmi-01bbdf3cd5876020eeca86f3a00c505a8abafd9d.tar
urpmi-01bbdf3cd5876020eeca86f3a00c505a8abafd9d.tar.gz
urpmi-01bbdf3cd5876020eeca86f3a00c505a8abafd9d.tar.bz2
urpmi-01bbdf3cd5876020eeca86f3a00c505a8abafd9d.tar.xz
urpmi-01bbdf3cd5876020eeca86f3a00c505a8abafd9d.zip
Remove verbose output of applydeltarpm
Diffstat (limited to 'urpm/sys.pm')
-rw-r--r--urpm/sys.pm14
1 files changed, 7 insertions, 7 deletions
diff --git a/urpm/sys.pm b/urpm/sys.pm
index 3c53f62b..01abaf2b 100644
--- a/urpm/sys.pm
+++ b/urpm/sys.pm
@@ -130,23 +130,23 @@ sub check_fs_writable () {
#- returns the new rpm filename in case of success
#- params :
#- $deltarpm : full pathname of the deltarpm
-#- $dir : directory where to put the produced rpm (optional)
-#- $pkg : URPM::Package object corresponding to the deltarpm (optional)
+#- $o_dir : directory where to put the produced rpm (optional)
+#- $o_pkg : URPM::Package object corresponding to the deltarpm (optional)
our $APPLYDELTARPM = '/usr/bin/applydeltarpm';
sub apply_delta_rpm {
- my ($deltarpm, $dir, $pkg) = @_;
+ my ($deltarpm, $o_dir, $o_pkg) = @_;
-x $APPLYDELTARPM or return 0;
-e $deltarpm or return 0;
my $rpm;
- if ($pkg) {
- $rpm = $pkg->name . '-' . $pkg->version . '-' . $pkg->release . '.' . $pkg->arch . '.rpm';
+ if ($o_pkg) {
+ $rpm = $o_pkg->name . '-' . $o_pkg->version . '-' . $o_pkg->release . '.' . $o_pkg->arch . '.rpm';
} else {
$rpm = qx(rpm -qp --qf '%{name}-%{version}-%{release}.%{arch}.rpm' '$deltarpm');
}
$rpm or return 0;
- $rpm = $dir . '/' . $rpm;
+ $rpm = $o_dir . '/' . $rpm;
unlink $rpm;
- system($APPLYDELTARPM, '-vp', $deltarpm, $rpm);
+ system($APPLYDELTARPM, $deltarpm, $rpm);
-e $rpm ? $rpm : '';
}