Getting the service pack number fails with hungarian Windows because it
reports 'Szervizcsomag 2 ' instead of 'Service Pack 2'. I know very
little Perl, so asking: will this work?

    my $sp;
    if ($csd_version eq '') {
        $sp = '';
    }^M
    elsif ($csd_version =~ /^Service Pack (\d+)/) {
        $sp = "sp$1";
    }
    elsif ($csd_version =~ /^Szervizcsomag (\d+)/) {
        $sp = "sp$1";
    }
    else {
        die "Unrecognized $csd_key: $csd_version";
    }

TIA for help.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to