Subversion Repositories SvarDOS

Rev

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

Rev 614 Rev 627
Line 114... Line 114...
114
  memcpy(pkgname, file + lastpathdelim + 1, t);
114
  memcpy(pkgname, file + lastpathdelim + 1, t);
115
  pkgname[t] = 0;
115
  pkgname[t] = 0;
116
  /* prepare the zip file and install it */
116
  /* prepare the zip file and install it */
117
  zipfileidx = pkginstall_preparepackage(pkgname, file, flags, &zipfilefd, dosdir, dirlist);
117
  zipfileidx = pkginstall_preparepackage(pkgname, file, flags, &zipfilefd, dosdir, dirlist);
118
  if (zipfileidx != NULL) {
118
  if (zipfileidx != NULL) {
-
 
119
    /* remove the old version of the package if we are UPDATING it */
-
 
120
    res = 0;
-
 
121
    if (flags & PKGINST_UPDATE) res = pkgrem(pkgname, dosdir);
119
    res = pkginstall_installpackage(pkgname, dosdir, dirlist, zipfileidx, zipfilefd);
122
    if (res == 0) res = pkginstall_installpackage(pkgname, dosdir, dirlist, zipfileidx, zipfilefd);
120
    zip_freelist(&zipfileidx);
123
    zip_freelist(&zipfileidx);
121
  }
124
  }
122
 
125
 
123
  fclose(zipfilefd);
126
  fclose(zipfilefd);
124
  return(res);
127
  return(res);