Subversion Repositories SvarDOS

Rev

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

Rev 727 Rev 757
Line 28... Line 28...
28
#include <stdio.h>    /* printf() */
28
#include <stdio.h>    /* printf() */
29
#include <stdlib.h>   /* malloc() and friends */
29
#include <stdlib.h>   /* malloc() and friends */
30
#include <string.h>   /* strcasecmp() */
30
#include <string.h>   /* strcasecmp() */
31
 
31
 
32
#include "svarlang.lib/svarlang.h"
32
#include "svarlang.lib/svarlang.h"
-
 
33
#include "helpers.h"
33
#include "kprintf.h"
34
#include "kprintf.h"
34
#include "libunzip.h"
35
#include "libunzip.h"
35
#include "pkginst.h"
36
#include "pkginst.h"
36
#include "pkgrem.h"
37
#include "pkgrem.h"
37
#include "showinst.h"
38
#include "showinst.h"
Line 111... Line 112...
111
    puts(svarlang_str(3, 24)); /* "ERROR: package name too long" */
112
    puts(svarlang_str(3, 24)); /* "ERROR: package name too long" */
112
    return(1);
113
    return(1);
113
  }
114
  }
114
  memcpy(pkgname, file + lastpathdelim + 1, t);
115
  memcpy(pkgname, file + lastpathdelim + 1, t);
115
  pkgname[t] = 0;
116
  pkgname[t] = 0;
-
 
117
  strtolower(pkgname); /* package name must be all lower-case for further file matching in the zip file */
116
  /* prepare the zip file and install it */
118
  /* prepare the zip file and install it */
117
  zipfileidx = pkginstall_preparepackage(pkgname, file, flags, &zipfilefd, dosdir, dirlist);
119
  zipfileidx = pkginstall_preparepackage(pkgname, file, flags, &zipfilefd, dosdir, dirlist);
118
  if (zipfileidx != NULL) {
120
  if (zipfileidx != NULL) {
119
    /* remove the old version of the package if we are UPDATING it */
121
    /* remove the old version of the package if we are UPDATING it */
120
    res = 0;
122
    res = 0;