summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-05-06 14:49:41 +0200
committerDavid Tardon <dtardon@redhat.com>2012-05-29 07:34:16 +0200
commit5fb958bc31d6c235562d37c3e4943ccbe37b769f (patch)
tree07ae8a24fe561f752cbe457408a34291047bd0ef /solenv/bin
parent8f102d9d7040398e8f7a9a029fb8e05bbf0757d4 (diff)
create gbuild class for install scripts
Diffstat (limited to 'solenv/bin')
-rw-r--r--solenv/bin/modules/pre2par/work.pm8
-rw-r--r--solenv/bin/pre2par.pl3
2 files changed, 4 insertions, 7 deletions
diff --git a/solenv/bin/modules/pre2par/work.pm b/solenv/bin/modules/pre2par/work.pm
index d70f75e80b2e..fe90bdfac737 100644
--- a/solenv/bin/modules/pre2par/work.pm
+++ b/solenv/bin/modules/pre2par/work.pm
@@ -321,18 +321,16 @@ sub fileexists
}
############################################
-# Checking the existence of ulf and
-# jlf/mlf files
+# Checking the existence of ulf file
############################################
sub check_existence_of_langfiles
{
- my ($langfilename, $ulffilename) = @_;
+ my ($langfilename) = @_;
my $do_localize = 0;
- if (( fileexists($ulffilename) ) && ( ! fileexists($langfilename) )) { pre2par::exiter::exit_program("Error: Did not find language file $langfilename", "check_existence_of_langfiles"); }
- if (( fileexists($ulffilename) ) && ( fileexists($langfilename) )) { $do_localize = 1; }
+ if ( fileexists($langfilename) ) { $do_localize = 1; }
return $do_localize;
}
diff --git a/solenv/bin/pre2par.pl b/solenv/bin/pre2par.pl
index f279ae106797..108ea4a2f1f9 100644
--- a/solenv/bin/pre2par.pl
+++ b/solenv/bin/pre2par.pl
@@ -53,9 +53,8 @@ my $parfile = pre2par::work::convert($prefile);
pre2par::work::formatter($parfile);
my $langfilename = pre2par::work::getlangfilename();
-my $ulffilename = pre2par::work::getulffilename($pre2par::globals::prefilename);
-my $dolocalization = pre2par::work::check_existence_of_langfiles($langfilename, $ulffilename);
+my $dolocalization = pre2par::work::check_existence_of_langfiles($langfilename);
if ( $dolocalization )
{