summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-02-18 15:03:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-02-18 15:03:00 +0000
commit2f3aaac785391d3574f54a2eb7ebe5befab2c2d1 (patch)
treeaa3f657dba5a101375f7c8fd2f46ff2c01c9ec85 /perl-install/partition_table.pm
parent5a222ad82ffcf5548f86c5efab8ffb90a8b7efb3 (diff)
downloaddrakx-2f3aaac785391d3574f54a2eb7ebe5befab2c2d1.tar
drakx-2f3aaac785391d3574f54a2eb7ebe5befab2c2d1.tar.gz
drakx-2f3aaac785391d3574f54a2eb7ebe5befab2c2d1.tar.bz2
drakx-2f3aaac785391d3574f54a2eb7ebe5befab2c2d1.tar.xz
drakx-2f3aaac785391d3574f54a2eb7ebe5befab2c2d1.zip
media_browser returns a filehandle when non save
Diffstat (limited to 'perl-install/partition_table.pm')
-rw-r--r--perl-install/partition_table.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index c4efd7d27..f6fe086c0 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -596,7 +596,12 @@ sub next_start {
sub load {
my ($hd, $file, $b_force) = @_;
- open(my $F, $file) or die N("Error reading file %s", $file);
+ my $F;
+ if (ref $file) {
+ $F = $file;
+ } else {
+ open($F, $file) or die N("Error reading file %s", $file);
+ }
my $h;
{