The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit d883ce56aa07755957cd27999c2a1a6647e9cfac
Author: Uwe Stöhr <[email protected]>
Date:   Sun Mar 17 16:24:24 2013 +0100

    installer: fix a logic bug

diff --git a/development/Win32/packaging/installer/include/LaTeX.nsh 
b/development/Win32/packaging/installer/include/LaTeX.nsh
index 5a5a1bc..1d9a660 100644
--- a/development/Win32/packaging/installer/include/LaTeX.nsh
+++ b/development/Win32/packaging/installer/include/LaTeX.nsh
@@ -261,17 +261,20 @@ Function ConfigureMiKTeX
    # dvipost
    SetOutPath "$PathLaTeXLocal\tex\latex\dvipost"
    File "${FILES_DVIPOST_PKG}\dvipost.sty"
-   # Belarusian support
-   SetOutPath "$PathLaTeXLocal\tex\generic\babel"
-   File "${FILES_DVIPOST_PKG}\belarusian.ldf"
-   File "${FILES_DVIPOST_PKG}\belarusian.sty"
-   # Hungarian support
-   SetOutPath "$PathLaTeXLocal\tex\generic\babel"
-   File "${FILES_DVIPOST_PKG}\magyar.ldf"
    # files in Resources\tex
    SetOutPath "$PathLaTeXLocal\tex\latex\lyx"
    CopyFiles /SILENT "$INSTDIR\Resources\tex\*.*" 
"$PathLaTeXLocal\tex\latex\lyx"
   ${endif}
+  # Belarusian support
+  ${ifnot} ${FileExists} "$PathLaTeXLocal\tex\generic\babel\belarusian.ldf"
+   SetOutPath "$PathLaTeXLocal\tex\generic\babel"
+   File "${FILES_DVIPOST_PKG}\belarusian.ldf"
+   File "${FILES_DVIPOST_PKG}\belarusian.sty"
+  ${endif}
+  # Hungarian support
+  # this is a replacement therefore do this in every case
+  SetOutPath "$PathLaTeXLocal\tex\generic\babel"
+  File "${FILES_DVIPOST_PKG}\magyar.ldf"
   
   # only install a Perl interpreter if it is not already installed
   # this is only possible if MikTeX _and_ LyX is installed with the same 
privileges

-----------------------------------------------------------------------

Summary of changes:
 .../Win32/packaging/installer/include/LaTeX.nsh    |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to