Subversion Repositories SvarDOS

Rev

Rev 1893 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1893 Rev 1894
Line 322... Line 322...
322
  sprintf(buff, "%s\\appinfo\\%s.lsm", dosdir, pkgname);
322
  sprintf(buff, "%s\\appinfo\\%s.lsm", dosdir, pkgname);
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
  printf(" %s -> %s\n", ziplinkedlist->filename, buff);
327
  output(ziplinkedlist->filename);
-
 
328
  output(" -> ");
-
 
329
  output(buff);
328
  unzip_result = zip_unzip(zipfd, ziplinkedlist, buff);
330
  unzip_result = zip_unzip(zipfd, ziplinkedlist, buff);
-
 
331
  puts("");
329
  if (unzip_result != 0) {
332
  if (unzip_result != 0) {
330
    kitten_printf(10, 4, unzip_result); /* "ERROR: unzip failure (%d)" */
333
    kitten_printf(10, 4, unzip_result); /* "ERROR: unzip failure (%d)" */
331
    puts("");
334
    puts("");
332
    return(-1);
335
    return(-1);
333
  }
336
  }
Line 354... Line 357...
354
    /* create the path, just in case it doesn't exist yet */
357
    /* create the path, just in case it doesn't exist yet */
355
    mkpath(buff);
358
    mkpath(buff);
356
    sprintf(fulldestfilename, "%s%s", buff, shortfile);
359
    sprintf(fulldestfilename, "%s%s", buff, shortfile);
357
 
360
 
358
    /* Now unzip the file */
361
    /* Now unzip the file */
359
    output(" ");
-
 
360
    output(curzipnode->filename);
362
    output(curzipnode->filename);
361
    output(" -> ");
363
    output(" -> ");
362
    output(buff);
364
    output(buff);
363
    //printf(" %s -> %s", curzipnode->filename, buff);
-
 
364
    unzip_result = zip_unzip(zipfd, curzipnode, fulldestfilename);
365
    unzip_result = zip_unzip(zipfd, curzipnode, fulldestfilename);
365
    puts("");
366
    puts("");
366
    if (unzip_result != 0) {
367
    if (unzip_result != 0) {
367
      kitten_printf(10, 4, unzip_result); /* "ERROR: unzip failure (%d)" */
368
      kitten_printf(10, 4, unzip_result); /* "ERROR: unzip failure (%d)" */
368
      puts("");
369
      puts("");