aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-06-15 19:54:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-06-15 19:54:27 +0000
commit34dbf4bbaa6cbd0f87f8b786caeab94b2a11b1f3 (patch)
treedf203d4023bd74551fd77cfff8089e8446b230aa
parent42b8bd791c7d9fa739867ae279467ad7aa9c36af (diff)
downloadrpmtools-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--genhdlist210
1 files changed, 8 insertions, 2 deletions
diff --git a/genhdlist2 b/genhdlist2
index 3b5128e..a141621 100644
--- a/genhdlist2
+++ b/genhdlist2
@@ -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);