Corrected -Rsc operation - dependancy info was not being read from the DB

This commit is contained in:
Aaron Griffin 2006-12-05 07:00:22 +00:00
parent 8028a1124a
commit 2116ce78fb
2 changed files with 7 additions and 4 deletions

View file

@ -465,6 +465,9 @@ pmlist_t *_alpm_removedeps(pmdb_t *db, pmlist_t *targs)
} }
FREELISTPTR(k); FREELISTPTR(k);
} }
_alpm_db_read(db, INFRQ_DEPENDS, dep);
if(_alpm_pkg_isin(dep->name, targs)) { if(_alpm_pkg_isin(dep->name, targs)) {
continue; continue;
} }

View file

@ -152,14 +152,14 @@ void alpm_option_set_root(const char *root)
void alpm_option_set_dbpath(const char *dbpath) void alpm_option_set_dbpath(const char *dbpath)
{ {
if(handle->dbpath) FREE(handle->dbpath); if(handle->dbpath) FREE(handle->dbpath);
if(dbpath) handle->dbpath = strdup(dbpath); if(dbpath) handle->dbpath = strdup(dbpath);
} }
void alpm_option_set_cachedir(const char *cachedir) void alpm_option_set_cachedir(const char *cachedir)
{ {
if(handle->cachedir) FREE(handle->cachedir); if(handle->cachedir) FREE(handle->cachedir);
if(cachedir) handle->cachedir = strdup(cachedir); if(cachedir) handle->cachedir = strdup(cachedir);
} }
void alpm_option_set_logfile(const char *logfile) void alpm_option_set_logfile(const char *logfile)