mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-16 06:15:08 -05:00
alpm: kill alpm_deptest
This has been replaced by the more flexible alpm_find_satisfier function, and alpm_deptest was completely unsused now. Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
8791ae0fda
commit
d5a7dc67d9
@ -432,7 +432,6 @@ typedef enum _pmdepmod_t {
|
|||||||
int alpm_depcmp(pmpkg_t *pkg, pmdepend_t *dep);
|
int alpm_depcmp(pmpkg_t *pkg, pmdepend_t *dep);
|
||||||
alpm_list_t *alpm_checkdeps(alpm_list_t *pkglist, int reversedeps,
|
alpm_list_t *alpm_checkdeps(alpm_list_t *pkglist, int reversedeps,
|
||||||
alpm_list_t *remove, alpm_list_t *upgrade);
|
alpm_list_t *remove, alpm_list_t *upgrade);
|
||||||
alpm_list_t *alpm_deptest(pmdb_t *db, alpm_list_t *targets);
|
|
||||||
pmpkg_t *alpm_find_satisfier(alpm_list_t *pkgs, const char *depstring);
|
pmpkg_t *alpm_find_satisfier(alpm_list_t *pkgs, const char *depstring);
|
||||||
|
|
||||||
const char *alpm_miss_get_target(const pmdepmissing_t *miss);
|
const char *alpm_miss_get_target(const pmdepmissing_t *miss);
|
||||||
|
@ -216,31 +216,6 @@ pmpkg_t SYMEXPORT *alpm_find_satisfier(alpm_list_t *pkgs, const char *depstring)
|
|||||||
return(pkg);
|
return(pkg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Checks dependencies and returns missing ones in a list.
|
|
||||||
* Dependencies can include versions with depmod operators.
|
|
||||||
* @param db pointer to the local package database
|
|
||||||
* @param targets an alpm_list_t* of dependencies strings to satisfy
|
|
||||||
* @return an alpm_list_t* of missing dependencies strings
|
|
||||||
*/
|
|
||||||
alpm_list_t SYMEXPORT *alpm_deptest(pmdb_t *db, alpm_list_t *targets)
|
|
||||||
{
|
|
||||||
alpm_list_t *i, *ret = NULL;
|
|
||||||
|
|
||||||
for(i = targets; i; i = alpm_list_next(i)) {
|
|
||||||
pmdepend_t *dep;
|
|
||||||
char *target;
|
|
||||||
|
|
||||||
target = alpm_list_getdata(i);
|
|
||||||
dep = _alpm_splitdep(target);
|
|
||||||
|
|
||||||
if(!_alpm_find_dep_satisfier(_alpm_db_get_pkgcache(db), dep)) {
|
|
||||||
ret = alpm_list_add(ret, target);
|
|
||||||
}
|
|
||||||
_alpm_dep_free(dep);
|
|
||||||
}
|
|
||||||
return(ret);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Checks dependencies and returns missing ones in a list.
|
/** Checks dependencies and returns missing ones in a list.
|
||||||
* Dependencies can include versions with depmod operators.
|
* Dependencies can include versions with depmod operators.
|
||||||
* @param pkglist the list of local packages
|
* @param pkglist the list of local packages
|
||||||
|
Loading…
Reference in New Issue
Block a user