From 45af27325ded155ab7ce4c76daedd053d9d504cc Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Mon, 18 Dec 2017 21:26:09 +0000 Subject: Properly import $dir_distrib_sqfs into Loopback module. Allows 'use strict' to be added to that module. --- lib/MGA/DrakISO/Loopback.pm | 4 +++- lib/MGA/DrakISO/Mounts.pm | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/MGA/DrakISO/Loopback.pm b/lib/MGA/DrakISO/Loopback.pm index 5e8e38e..ed8cba7 100644 --- a/lib/MGA/DrakISO/Loopback.pm +++ b/lib/MGA/DrakISO/Loopback.pm @@ -1,8 +1,10 @@ package MGA::DrakISO::Loopback; +use strict; use MDK::Common; use File::Temp; +use MGA::DrakISO::Mounts; use MGA::DrakISO::Progress; use MGA::DrakISO::Utils; @@ -105,7 +107,7 @@ our %loop_types; mount => sub { my ($dir) = @_; $dir->{loop} = "/dev/loop" . $loop_number++; - my $sqfs = $dir_distrib_sqfs->{mountpoint}; + my $sqfs = $MGA::DrakISO::Mounts::dir_distrib_sqfs->{mountpoint}; my $fsck = "chroot {loop}"; my $extension = $dir->{path} . $loop_types{loopfs}{extension}; my $mountpoint = $dir->{mountpoint}; diff --git a/lib/MGA/DrakISO/Mounts.pm b/lib/MGA/DrakISO/Mounts.pm index c3c408d..ceaeb8b 100644 --- a/lib/MGA/DrakISO/Mounts.pm +++ b/lib/MGA/DrakISO/Mounts.pm @@ -4,7 +4,7 @@ use strict; use MDK::Common; -my $dir_distrib_sqfs = { +our $dir_distrib_sqfs = { mountpoint => '/distrib', type => 'squashfs', path => '/distrib', -- cgit v1.2.1