summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-23 13:30:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-23 13:30:17 +0000
commit84f1d57e6e1fc11b5f9232621fbf24059ca11739 (patch)
treea05d3d5c316542f837e1cb93ed33388d25bc5186
parenta3cfc3441593f8ed8dd8ed636502e6f115fb5177 (diff)
downloadurpmi-84f1d57e6e1fc11b5f9232621fbf24059ca11739.tar
urpmi-84f1d57e6e1fc11b5f9232621fbf24059ca11739.tar.gz
urpmi-84f1d57e6e1fc11b5f9232621fbf24059ca11739.tar.bz2
urpmi-84f1d57e6e1fc11b5f9232621fbf24059ca11739.tar.xz
urpmi-84f1d57e6e1fc11b5f9232621fbf24059ca11739.zip
this is debug stuff, hide it from -v
-rw-r--r--urpm/install.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index 7e33dd74..7e68343d 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -167,8 +167,9 @@ sub install {
if ($trans->add($pkg, update => $update,
$options{excludepath} ? (excludepath => [ split /,/, $options{excludepath} ]) : ()
)) {
- $urpm->{log}(N("adding package %s (id=%d, eid=%d, update=%d, file=%s)", scalar($pkg->fullname),
- $_, $pkg->id, $update, $mode->{$_}));
+ $urpm->{debug} and $urpm->{debug}(
+ N("adding package %s (id=%d, eid=%d, update=%d, file=%s)", scalar($pkg->fullname),
+ $_, $pkg->id, $update, $mode->{$_}));
} else {
$urpm->{error}(N("unable to install package %s", $mode->{$_}));
}