144
144
int would_like_to_install(pkginfo::pkgwant wantvalue, pkginfo *pkg) {
145
145
/* Returns: 1 for yes, 0 for no, -1 for if they want to preserve an error condition. */
146
if (debug) fprintf(debug,"would_like_to_install(%d, %s) status %d\n",
146
debug(dbg_general, "would_like_to_install(%d, %s) status %d",
149
149
if (wantvalue == pkginfo::want_install) return 1;
150
150
if (wantvalue != pkginfo::want_hold) return 0;
151
151
if (pkg->status == pkginfo::stat_installed) return 1;