1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-02-23 09:03:23 -05:00

This adds /usr/share/perl5 to @INC in distributions which don't adhere to the

newest FHS.
This commit is contained in:
freesource 2001-10-06 21:12:35 +00:00
parent 7ebba544af
commit 4bb9980672

View File

@ -79,7 +79,19 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
use lib "/usr/share/perl5";
# For distributions that don't adhere to the FHS.
BEGIN {
my $fhs = grep(/\/usr\/share\/perl5/,@INC);
if ($fhs == 0) {
unshift(@INC,"/usr/share/perl5");
}
}
use Gtk;
use strict;
use BootRoot::Yard;
@ -309,7 +321,7 @@ my $ars = {}; # anonymous hash
# How the Boot/Root set is constructed for the 2 disk compression method:
#
# 1. submit() start the process.
# 2. kernel_moudles() sets the $kernel_version.
# 2. kernel_modules() sets the $kernel_version.
# 3. lilo() is called.
# 4. $ok determines what functions should be called for creating the
# Boot disk.