diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-10 18:52:10 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-10 18:52:10 +0000 |
commit | a3bc300c72f6dc74cddc8f78ac38f97904a02f1d (patch) | |
tree | 809fd4504348110a104328b34580d6a68a09d8ca /genhdlist2 | |
parent | 7aa9cdca12ef254aef94abcf1de1fd78137599b7 (diff) | |
download | rpmtools-a3bc300c72f6dc74cddc8f78ac38f97904a02f1d.tar rpmtools-a3bc300c72f6dc74cddc8f78ac38f97904a02f1d.tar.gz rpmtools-a3bc300c72f6dc74cddc8f78ac38f97904a02f1d.tar.bz2 rpmtools-a3bc300c72f6dc74cddc8f78ac38f97904a02f1d.tar.xz rpmtools-a3bc300c72f6dc74cddc8f78ac38f97904a02f1d.zip |
- genhdlist2:
o error message when parse_hdlist (partially) fail
Diffstat (limited to 'genhdlist2')
-rw-r--r-- | genhdlist2 | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -149,7 +149,7 @@ sub build_hdlist { sub filter_existing_hdlist { my ($urpm, $rpms_todo, $in_hdlist, $out) = @_; - $urpm->parse_hdlist($in_hdlist, packing => 1, callback => sub { + if ($urpm->parse_hdlist($in_hdlist, packing => 1, callback => sub { my (undef, $pkg) = @_; my $fullname = $pkg->fullname; if (delete $rpms_todo->{$fullname}) { @@ -160,7 +160,12 @@ sub filter_existing_hdlist { print "removing $fullname\n" if $verbose > 0; 0; # don't keep in memory } - }); + })) { + # ok + } else { + my $nb = @{$urpm->{depslist}}; + print STDERR "parse_hdlist has failed, keeping $nb headers succesfully parsed\n" if $verbose >= 0; + } } sub add_new_rpms_to_hdlist { |