[gelöst] Bug in CreateISOImage.cmd

[gelöst] Bug in CreateISOImage.cmd

Postby AlBundy » 30.12.2010, 10:14

Hallo,

ich hab gerade gesehen, dass DownloadUpdates.cmd für
oxp, o2k3 und o2k7 die Updates sprachabhängig runterlädt und für
ofc nur glb unterstützt wird.

Wenn man jetzt aber in CreateISOImage.cmd schaut, kann man dort auch ein sprachabhängiges ISO für ofc erzeugen.

Ist das jetzt ein Bug oder so gewollt?
Ich verwende übrigens die letzte Version aus dem svn.

Al
Automatic Updates Downloader: https://github.com/AlBundy33/wsusoffline_download
AlBundy
 
Posts: 94
Joined: 05.05.2010, 03:31

Re: Bug in CreateISOImage.cmd?

Postby WSUSUpdateAdmin » 30.12.2010, 14:31

Moin!

Das ist so gewollt.

DownloadUpdates.cmd Zeile 535ff:
Code: Select all
for %%i in (oxp o2k3 o2k7) do (
  if /i "%1"=="%%i" (
    call :DownloadCore ofc %2
    if errorlevel 1 goto Error
  )
)


GTW
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: Bug in CreateISOImage.cmd?

Postby AlBundy » 30.12.2010, 14:45

Ok - hatte dann im UpdateGenerator.au3 gesehen, dass ofc glb immer dann aktiviert wird, wenn irgendein Office-Paket in irgendeiner Sprache aktiviert ist.

Hab das mal mit in mein Skript eingebaut.

Al
Automatic Updates Downloader: https://github.com/AlBundy33/wsusoffline_download
AlBundy
 
Posts: 94
Joined: 05.05.2010, 03:31

Kleiner Bug in CreateISOImage.cmd

Postby AlBundy » 30.12.2010, 15:41

Scheinbar hab ich meine Eintrag vorhins nicht abgeschickt. :-/

Am Ende von CreateISOImage.cmd gibt es einen kleinen Fehler:

Code: Select all
:Error
if exist %ISO_FILTER% del %ISO_FILTER%
set MKISO_ERROR=1


Die Zeile set MKISO_ERROR=1 enthält ein Leerzeichen am Ende, wodurch der Check in EoF niemals true wird.

Ausserdem muss man, soweit ich weiss, nicht unbedingt endlocal aufrufen, da das beim beenden des Batch-Files automatisch gemacht wird.

Man muss auch nicht unbedingt verify verwenden um das errorlevel zu setzen - man kann auch einfach exit /b 1 aufrufen um das Skript zu beenden und das entsprechende Errorlevel zu setzen.

Gruß

Al
Automatic Updates Downloader: https://github.com/AlBundy33/wsusoffline_download
AlBundy
 
Posts: 94
Joined: 05.05.2010, 03:31

Re: Kleiner Bug in CreateISOImage.cmd

Postby WSUSUpdateAdmin » 31.12.2010, 01:19

Moin!

AlBundy wrote:[...]Die Zeile set MKISO_ERROR=1 enthält ein Leerzeichen am Ende, wodurch der Check in EoF niemals true wird.[...]

Danke, fixed in http://trac.wsusoffline.net/browser/trunk (r191).
Guten Rutsch! :)

GTW
Last edited by aker on 27.07.2013, 22:35, edited 1 time in total.
Reason: Trac Link korregiert
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: Kleiner Bug in CreateISOImage.cmd

Postby AlBundy » 31.12.2010, 02:30

Super - vielen Dank.

Auch Dir einen Guten Rutsch. :-)

Al
Automatic Updates Downloader: https://github.com/AlBundy33/wsusoffline_download
AlBundy
 
Posts: 94
Joined: 05.05.2010, 03:31


Return to Verschiedenes / Miscellaneous

Who is online

Users browsing this forum: No registered users and 47 guests

cron