Changeset 3913


Ignore:
Timestamp:
Mar 14, 2020, 2:18:13 PM (5 years ago)
Author:
Andreas Schnellbacher
Message:
  • Added case handling when NEPMD.INI doesn't exist.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/netlabs/install/cleandatb.cmd

    r3911 r3913  
    323323   rcx = IniClose( DataBase)
    324324
    325    /* Delete possible package names from NEPMD.INI after all is done */
    326    IF IniFunc( NepmdIni, 'Install', 'PckPrefixNames') <> 'ERROR:' THEN
     325   IF NepmdIni <> '' THEN
    327326   DO
    328       /*SAY 'rcx = IniFunc( 'NepmdIni', ''Install'', ''PckPrefixNames'', ''DELETE:'')'*/
    329       rcx =  IniFunc( NepmdIni, 'Install', 'PckPrefixNames', 'DELETE:')
    330    END
    331 
    332    DO p = 1 TO Pck.0
    333       IF IniFunc( NepmdIni, 'Install', 'PckNames.'p) <> 'ERROR:' THEN
    334       DO
    335          /*SAY 'rcx = IniFunc( 'NepmdIni', ''Install'', ''PckNames.'p''', ''DELETE:'')'*/
    336          rcx = IniFunc( NepmdIni, 'Install', 'PckNames.'p, 'DELETE:')
    337       END
    338    END
    339 
    340    IF IniFunc( NepmdIni, 'Install', 'PckNames.0') <> 'ERROR:' THEN
    341    DO
    342       /*SAY 'rcx = IniFunc( 'NepmdIni', ''Install'', ''PckNames.0'', ''DELETE:'')'*/
    343       rcx = IniFunc( NepmdIni, 'Install', 'PckNames.0', 'DELETE:')
    344    END
    345 
    346    /* Close NEPMD.INI */
    347    rcx = IniClose( NepmdIni)
     327      /* Delete possible package names from NEPMD.INI after all is done */
     328      IF IniFunc( NepmdIni, 'Install', 'PckPrefixNames') <> 'ERROR:' THEN
     329      DO
     330         /*SAY 'rcx = IniFunc( 'NepmdIni', ''Install'', ''PckPrefixNames'', ''DELETE:'')'*/
     331         rcx =  IniFunc( NepmdIni, 'Install', 'PckPrefixNames', 'DELETE:')
     332      END
     333
     334      DO p = 1 TO Pck.0
     335         IF IniFunc( NepmdIni, 'Install', 'PckNames.'p) <> 'ERROR:' THEN
     336         DO
     337            /*SAY 'rcx = IniFunc( 'NepmdIni', ''Install'', ''PckNames.'p''', ''DELETE:'')'*/
     338            rcx = IniFunc( NepmdIni, 'Install', 'PckNames.'p, 'DELETE:')
     339         END
     340      END
     341
     342      IF IniFunc( NepmdIni, 'Install', 'PckNames.0') <> 'ERROR:' THEN
     343      DO
     344         /*SAY 'rcx = IniFunc( 'NepmdIni', ''Install'', ''PckNames.0'', ''DELETE:'')'*/
     345         rcx = IniFunc( NepmdIni, 'Install', 'PckNames.0', 'DELETE:')
     346      END
     347
     348      /* Close NEPMD.INI */
     349      rcx = IniClose( NepmdIni)
     350   END
    348351END
    349352
Note: See TracChangeset for help on using the changeset viewer.