[Libreoffice-commits] .: solenv/bin

Tim Retout timretout at kemper.freedesktop.org
Wed Feb 22 14:56:00 PST 2012


 solenv/bin/make_installer.pl |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

New commits:
commit 617c91401651d96f4ad48b529efd8d2390ae7a4b
Author: Tim Retout <tim at retout.co.uk>
Date:   Wed Feb 22 22:41:03 2012 +0000

    Remove unnecessary $run variable from installer.

diff --git a/solenv/bin/make_installer.pl b/solenv/bin/make_installer.pl
index 685881a..e2a94d4 100644
--- a/solenv/bin/make_installer.pl
+++ b/solenv/bin/make_installer.pl
@@ -1269,18 +1269,14 @@ for ( my $n = 0; $n <= $#installer::globals::languageproducts; $n++ )
 
                 if ( $installer::globals::linuxlinkrpms =~ /\b$onepackagename\b/ )
                 {
-                    my $run = 0;
-
-                    if (( $installer::globals::makelinuxlinkrpm ) && ( ! $run ))
+                    if ( $installer::globals::makelinuxlinkrpm )
                     {
                         $filesinpackage = \@installer::globals::linuxpatchfiles;
                         $linksinpackage = \@installer::globals::linuxlinks;
                         $installer::globals::makelinuxlinkrpm = 0;
                         if ( $installer::globals::patch ) { $installer::globals::call_epm = 1; }     # enabling packing again
-                        $run = 1;
                     }
-
-                    if (( ! $installer::globals::makelinuxlinkrpm ) && ( ! $run ))
+                    else
                     {
                         $filesinpackage = installer::worker::prepare_linuxlinkfiles($filesinpackage);
                         $linksinpackage = installer::worker::prepare_forced_linuxlinkfiles($linksinpackage);
@@ -1288,7 +1284,6 @@ for ( my $n = 0; $n <= $#installer::globals::languageproducts; $n++ )
                         $installer::globals::add_required_package = $packagename . "u";
                         if ( $installer::globals::patch ) { $installer::globals::call_epm = 0; }     # no packing of core module in patch
                         $shellscriptsfilename = ""; # shell scripts only need to be included into the link rpm
-                        $run = 1;
                     }
                 }
             }


More information about the Libreoffice-commits mailing list