Corrected -Rsc operation - dependancy info was not being read from the DB
This commit is contained in:
parent
8028a1124a
commit
2116ce78fb
2 changed files with 7 additions and 4 deletions
|
@ -465,6 +465,9 @@ pmlist_t *_alpm_removedeps(pmdb_t *db, pmlist_t *targs)
|
|||
}
|
||||
FREELISTPTR(k);
|
||||
}
|
||||
|
||||
_alpm_db_read(db, INFRQ_DEPENDS, dep);
|
||||
|
||||
if(_alpm_pkg_isin(dep->name, targs)) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -152,14 +152,14 @@ void alpm_option_set_root(const char *root)
|
|||
|
||||
void alpm_option_set_dbpath(const char *dbpath)
|
||||
{
|
||||
if(handle->dbpath) FREE(handle->dbpath);
|
||||
if(dbpath) handle->dbpath = strdup(dbpath);
|
||||
if(handle->dbpath) FREE(handle->dbpath);
|
||||
if(dbpath) handle->dbpath = strdup(dbpath);
|
||||
}
|
||||
|
||||
void alpm_option_set_cachedir(const char *cachedir)
|
||||
{
|
||||
if(handle->cachedir) FREE(handle->cachedir);
|
||||
if(cachedir) handle->cachedir = strdup(cachedir);
|
||||
if(handle->cachedir) FREE(handle->cachedir);
|
||||
if(cachedir) handle->cachedir = strdup(cachedir);
|
||||
}
|
||||
|
||||
void alpm_option_set_logfile(const char *logfile)
|
||||
|
|
Loading…
Add table
Reference in a new issue