diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-07 08:51:46 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-07 08:51:46 +0000 |
commit | 23b75ec646306127dd7a9695507010c872c63a57 (patch) | |
tree | e895b2c69896776e0ce5cb345c0699d3aed993fe | |
parent | cead340ceb424e9134f14577af382d696f843168 (diff) | |
download | urpmi-23b75ec646306127dd7a9695507010c872c63a57.tar urpmi-23b75ec646306127dd7a9695507010c872c63a57.tar.gz urpmi-23b75ec646306127dd7a9695507010c872c63a57.tar.bz2 urpmi-23b75ec646306127dd7a9695507010c872c63a57.tar.xz urpmi-23b75ec646306127dd7a9695507010c872c63a57.zip |
small fix: there may be no medium name for a package (from command line)
-rwxr-xr-x | urpmi | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -585,7 +585,8 @@ foreach my $pkg (sort { $a->name cmp $b->name } @{$urpm->{depslist}}[keys %{$sta if (!$env && $install_src && $pkg->arch ne 'src') { push @root_only, $pkg->fullname; } elsif ($install_src || $pkg->arch ne 'src') { - my @name_and_evr = ($pkg->fullname, URPM::pkg2media($urpm->{media}, $pkg)->{name}); + my $medium = URPM::pkg2media($urpm->{media}, $pkg); + my @name_and_evr = ($pkg->fullname, $medium && $medium->{name}); $name_and_evr[2] =~ s/mdv(.*)/mdv/ if length($name_and_evr[2]) > 15; if ($state->{selected}{$pkg->id}{suggested}) { push @name_and_evr, N("(suggested)"); |