diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-06-15 19:54:27 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-06-15 19:54:27 +0000 |
commit | 34dbf4bbaa6cbd0f87f8b786caeab94b2a11b1f3 (patch) | |
tree | df203d4023bd74551fd77cfff8089e8446b230aa | |
parent | 42b8bd791c7d9fa739867ae279467ad7aa9c36af (diff) | |
download | rpmtools-34dbf4bbaa6cbd0f87f8b786caeab94b2a11b1f3.tar rpmtools-34dbf4bbaa6cbd0f87f8b786caeab94b2a11b1f3.tar.gz rpmtools-34dbf4bbaa6cbd0f87f8b786caeab94b2a11b1f3.tar.bz2 rpmtools-34dbf4bbaa6cbd0f87f8b786caeab94b2a11b1f3.tar.xz rpmtools-34dbf4bbaa6cbd0f87f8b786caeab94b2a11b1f3.zip |
nicer log message (when adding a pkg to hdlist)
-rw-r--r-- | genhdlist2 | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -142,10 +142,16 @@ sub add_new_rpms_to_hdlist { my ($urpm, $rpms_todo, $out, $rpms_dir) = @_; my @rpms = keys %$rpms_todo or return; - print "adding ", join(' ', @rpms), "\n" if $verbose > 0; + if ($verbose >= 0) { + if (@rpms > 100 || $verbose == 0) { + print "adding ", int(@rpms), " rpms\n"; + } else { + print "adding ", join(' ', @rpms), "\n"; + } + } foreach (@rpms) { - print "adding $_" if $verbose > 1; + print "adding $_\n" if $verbose > 1; my $rpm = "$rpms_dir/$_.rpm"; my ($id, undef) = $urpm->parse_rpm($rpm); |