Subversion Repositories SvarDOS

Rev

Rev 250 | Rev 261 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 250 Rev 260
Line 111... Line 111...
111
  }
111
  }
112
}
112
}
113
 
113
 
114
 
114
 
115
int main(int argc, char **argv) {
115
int main(int argc, char **argv) {
116
  int res = 1, flags;
116
  int res = 1;
117
  enum ACTIONTYPES action;
117
  enum ACTIONTYPES action;
118
  const char *dosdir;
118
  const char *dosdir;
119
  struct customdirs *dirlist;
119
  struct customdirs *dirlist;
120
 
120
 
121
  kittenopen("pkginst"); /* NLS init */
121
  kittenopen("pkginst"); /* NLS init */
Line 133... Line 133...
133
    kitten_puts(2, 3, "Example: SET DOSDIR=C:\\FDOS");
133
    kitten_puts(2, 3, "Example: SET DOSDIR=C:\\FDOS");
134
    goto GAMEOVER;
134
    goto GAMEOVER;
135
  }
135
  }
136
 
136
 
137
  /* load configuration */
137
  /* load configuration */
138
  flags = 0;
-
 
139
  dirlist = NULL;
-
 
140
  if (loadconf(dosdir, &dirlist, &flags) != 0) goto GAMEOVER;
138
  if (loadconf(dosdir, &dirlist) != 0) goto GAMEOVER;
141
 
139
 
142
  switch (action) {
140
  switch (action) {
143
    case ACTION_INSTALL:
141
    case ACTION_INSTALL:
144
      res = pkginst(argv[2], flags, dosdir, dirlist);
142
      res = pkginst(argv[2], 0, dosdir, dirlist);
145
      break;
143
      break;
146
    case ACTION_REMOVE:
144
    case ACTION_REMOVE:
147
      res = pkgrem(argv[2], dosdir);
145
      res = pkgrem(argv[2], dosdir);
148
      break;
146
      break;
149
    case ACTION_LISTFILES:
147
    case ACTION_LISTFILES: