summaryrefslogtreecommitdiffstats
path: root/move/make_live
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-05-18 13:54:03 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-05-18 13:54:03 +0000
commit43ca38547e69c5d216476071bbde6c6749ac8043 (patch)
treea2701acc70023d9a6cb8d8b350b3a1044c9a08a9 /move/make_live
parent7de42da48ae3c090e75eeeaf1eb7d7be2daf556f (diff)
downloaddrakx-43ca38547e69c5d216476071bbde6c6749ac8043.tar
drakx-43ca38547e69c5d216476071bbde6c6749ac8043.tar.gz
drakx-43ca38547e69c5d216476071bbde6c6749ac8043.tar.bz2
drakx-43ca38547e69c5d216476071bbde6c6749ac8043.tar.xz
drakx-43ca38547e69c5d216476071bbde6c6749ac8043.zip
perl_checker cleanups
Diffstat (limited to 'move/make_live')
-rwxr-xr-xmove/make_live7
1 files changed, 4 insertions, 3 deletions
diff --git a/move/make_live b/move/make_live
index 1d611e0ca..c8af88501 100755
--- a/move/make_live
+++ b/move/make_live
@@ -14,7 +14,7 @@ my $kernel_version = do {
first(`rpm -qp --qf '%{name}' $l[0]` =~ /kernel-(.*)/);
};
-sub installPackages {
+sub installPackages() {
output_p("$::prefix/etc/rpm/macros", "%_install_langs all\n");
rename '/etc/rpm/macros', '/etc/rpm/macros.';
system('cp', "$::prefix/etc/rpm/macros", '/etc/rpm/macros');
@@ -98,7 +98,7 @@ sub installPackages {
rename "/etc/rpm/macros.", "/etc/rpm/macros";
}
-sub config_X_proprietary_drivers {
+sub config_X_proprietary_drivers() {
unlink "$::prefix/usr/lib/libGL.so";
my %name_to_Driver = (NVIDIA_GLX => 'nvidia', ATI_GLX => 'fglrx');
@@ -115,7 +115,7 @@ sub config_X_proprietary_drivers {
#- remove the dirty hack done by NVIDIA_kernel-xxx proprietary package
#- we do it by hand when needed
- substInFile { $_ = '' if /^nvidia$/ } "$::prefix/etc/modules";
+ substInFile { $_ = '' if $_ eq 'nvidia' } "$::prefix/etc/modules";
}
$::prefix = `make get_dest_livetree`;
@@ -234,6 +234,7 @@ substInFile {
} "$::prefix/etc/mandrake-release";
#- fix mandrake galaxy version download
+my $next;
substInFile {
s/Mandrake%20Control%20Center\.desktop/Configure%20your%20computer.desktop/;
s/logiciels\.// if $next;