Subversion Repositories SvarDOS

Rev

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

Rev 1978 Rev 1980
Line 81... Line 81...
81
  *flags = 0;
81
  *flags = 0;
82
 
82
 
83
  /* look for valid actions */
83
  /* look for valid actions */
84
  if ((argc == 3) && (strcasecmp(argv[1], "install") == 0)) {
84
  if ((argc == 3) && (strcasecmp(argv[1], "install") == 0)) {
85
    return(ACTION_INSTALL);
85
    return(ACTION_INSTALL);
-
 
86
  } else if ((argc == 3) && (strcasecmp(argv[1], "inowarn") == 0)) {
-
 
87
    /* hidden action used by the SvarDOS installer to avoid onscreen warnings
-
 
88
     * during system installation */
-
 
89
    *flags = PKGINST_HIDEWARN;
-
 
90
    return(ACTION_INSTALL);
86
  } else if ((argc == 3) && (strcasecmp(argv[1], "update") == 0)) {
91
  } else if ((argc == 3) && (strcasecmp(argv[1], "update") == 0)) {
87
    *flags = PKGINST_UPDATE;
92
    *flags = PKGINST_UPDATE;
88
    return(ACTION_INSTALL);
93
    return(ACTION_INSTALL);
89
  } else if ((argc == 3) && (strcasecmp(argv[1], "rm") == 0)) {
94
  } else if ((argc == 3) && (strcasecmp(argv[1], "rm") == 0)) {
90
    return(ACTION_REMOVE);
95
    return(ACTION_REMOVE);
Line 125... Line 130...
125
 
130
 
126
    /* remove the old version of the package if we are UPDATING it */
131
    /* remove the old version of the package if we are UPDATING it */
127
    res = 0;
132
    res = 0;
128
    if (flags & PKGINST_UPDATE) res = pkgrem(pkgname, dosdir);
133
    if (flags & PKGINST_UPDATE) res = pkgrem(pkgname, dosdir);
129
 
134
 
130
    if (res == 0) res = pkginstall_installpackage(pkgname, dosdir, dirlist, zipfileidx, zipfilefd, bootdrive, buff15k);
135
    if (res == 0) res = pkginstall_installpackage(pkgname, dosdir, dirlist, zipfileidx, zipfilefd, bootdrive, buff15k, flags);
131
    zip_freelist(&zipfileidx);
136
    zip_freelist(&zipfileidx);
-
 
137
 
-
 
138
    fclose(zipfilefd);
132
  }
139
  }
133
 
140
 
134
  fclose(zipfilefd);
-
 
135
  return(res);
141
  return(res);
136
}
142
}
137
 
143
 
138
 
144
 
139
/* pkg crc32 file */
145
/* pkg crc32 file */