Subversion Repositories SvarDOS

Rev

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

Rev 1894 Rev 1957
Line 317... Line 317...
317
  struct ziplist *curzipnode;
317
  struct ziplist *curzipnode;
318
  FILE *lsmfd;
318
  FILE *lsmfd;
319
  int unzip_result;
319
  int unzip_result;
320
 
320
 
321
  /* create the %DOSDIR%/APPINFO directory, just in case it doesn't exist yet */
321
  /* create the %DOSDIR%/APPINFO directory, just in case it doesn't exist yet */
322
  sprintf(buff, "%s\\appinfo\\%s.lsm", dosdir, pkgname);
322
  sprintf(buff, "%s\\appinfo\\", dosdir);
323
  mkpath(buff);
323
  mkpath(buff);
324
 
324
 
325
  /* start by extracting the APPINFO (LSM) file - I need it so I can append the
325
  /* start by extracting the APPINFO (LSM) file - I need it so I can append the
326
   * list of files belonging to the packages later */
326
   * list of files belonging to the packages later */
327
  output(ziplinkedlist->filename);
327
  output(ziplinkedlist->filename);
328
  output(" -> ");
328
  output(" -> ");
329
  output(buff);
329
  output(buff);
-
 
330
  strcat(buff, pkgname);
-
 
331
  strcat(buff, ".lsm");
330
  unzip_result = zip_unzip(zipfd, ziplinkedlist, buff);
332
  unzip_result = zip_unzip(zipfd, ziplinkedlist, buff);
331
  puts("");
333
  puts("");
332
  if (unzip_result != 0) {
334
  if (unzip_result != 0) {
333
    kitten_printf(10, 4, unzip_result); /* "ERROR: unzip failure (%d)" */
335
    kitten_printf(10, 4, unzip_result); /* "ERROR: unzip failure (%d)" */
334
    puts("");
336
    puts("");