diff options
author | Petr Mladek <pmladek@suse.cz> | 2011-06-22 12:05:19 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-06-22 12:05:19 +0200 |
commit | 900baff9ff400a6eba034089ed69362c2c2d61e4 (patch) | |
tree | 6fe3edec26f96d6604c7d624d2b4857c6606f25e | |
parent | ac17f0b2b9d464e2300a4989ddaf7bc2c22f4e7b (diff) |
fix configure without the optional translations module
-rwxr-xr-x | set_soenv.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/set_soenv.in b/set_soenv.in index f015babca..8e393148c 100755 --- a/set_soenv.in +++ b/set_soenv.in @@ -1068,9 +1068,11 @@ $XCLASSPATH = '$JAVA_HOME'.$ds.'jre'.$LIB.$ds."rt.jar".$wps.'.'; $L10N_MODULE = PathFormat($SRC_ROOT."/translations"); # Check for poor help localizations, i.e. no help translation at all... -opendir(DIR,$L10N_MODULE . "/source"); -@languages = readdir(DIR); -closedir(DIR); +@languages=(); +if (opendir(DIR,$L10N_MODULE . "/source")) +{ @languages = readdir(DIR); + closedir(DIR); +} $WITH_POOR_HELP_LOCALIZATIONS = ""; foreach $language (@languages) |