aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-08-05 20:30:36 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-08-05 20:30:36 +0000
commitefd3bd6e805837decf92e2b38e1fe90c4596295f (patch)
tree661c989ce26657971e4c31769d360dfb0ee3e8b6
parentfa6a3236dad9217079a8e9f28315b06e6c96bdcd (diff)
downloadrpmdrake-efd3bd6e805837decf92e2b38e1fe90c4596295f.tar
rpmdrake-efd3bd6e805837decf92e2b38e1fe90c4596295f.tar.gz
rpmdrake-efd3bd6e805837decf92e2b38e1fe90c4596295f.tar.bz2
rpmdrake-efd3bd6e805837decf92e2b38e1fe90c4596295f.tar.xz
rpmdrake-efd3bd6e805837decf92e2b38e1fe90c4596295f.zip
call parsehdlist with only available hdists
-rwxr-xr-xrpmdrake3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 6ea99d4b..45714b81 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -414,7 +414,8 @@ sub run_treeview_dialog {
if ($entry =~ m|/|) {
my $w = wait_msg(_("Please wait, searching in files..."));
open SF, 'parsehdlist --fileswinfo --quiet ' .
- join(' ', map { if_(!$_->{ignore}, "$urpm->{statedir}/$_->{hdlist} ") } @{$urpm->{media}}) .
+ join(' ', map { my $hdlist = "$urpm->{statedir}/$_->{hdlist}";
+ if_(!$_->{ignore} && (-r $hdlist), "$hdlist ") } @{$urpm->{media}}) .
' |';
my $pkg;
while (<SF>) {