From cc53d7a77f5e1630fe6c0c3661829f2df3a8da1d Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 8 Sep 2004 07:41:51 +0000 Subject: Add a count of skipped packages after having read an hdlist --- perl-install/pkgs.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index edf7fbcb3..ff7b3aaf2 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -491,11 +491,13 @@ sub psUsingHdlist { if ($m->{ignored}) { log::l("ignoring packages in $hdlist"); } else { + my $nb_suppl_pkg_skipped = 0; my $callback = sub { my (undef, $p) = @_; our %uniq_pkg_seen; if ($uniq_pkg_seen{$p->fullname}++) { log::l("skipping " . scalar $p->fullname); + ++$nb_suppl_pkg_skipped; return 0; } else { return 1; @@ -515,7 +517,7 @@ sub psUsingHdlist { unlink $newf; $o_fhdlist or unlink $newsf; die "fatal: nothing read in hdlist or synthesis for $fakemedium" }; - log::l("read " . ($m->{end} - $m->{start} + 1) . " packages in $hdlist"); + log::l("read " . ($m->{end} - $m->{start} + 1) . " packages in $hdlist, $nb_suppl_pkg_skipped skipped"); } $m; } -- cgit v1.2.1