diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-06-15 19:47:01 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-06-15 19:48:30 +0300 |
commit | 5b02400b268e4e867a30cd76821ff7139502089e (patch) | |
tree | f48ed66e9bf5239419cf997564e5f4c94fbf4148 /src/package.c | |
parent | ac0c7457c26dd4424ec6282293f3ebbcc1e63886 (diff) | |
download | apk-tools-5b02400b268e4e867a30cd76821ff7139502089e.tar.gz apk-tools-5b02400b268e4e867a30cd76821ff7139502089e.tar.bz2 apk-tools-5b02400b268e4e867a30cd76821ff7139502089e.tar.xz apk-tools-5b02400b268e4e867a30cd76821ff7139502089e.zip |
lua: use apk_dep_analyze
and remove the now unused apk_dep_is_materialized_or_provided
which was superceded by apk_dep_analyze.
Diffstat (limited to 'src/package.c')
-rw-r--r-- | src/package.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/package.c b/src/package.c index 0bbaead..31321e7 100644 --- a/src/package.c +++ b/src/package.c @@ -377,28 +377,6 @@ int apk_dep_is_materialized(struct apk_dependency *dep, struct apk_package *pkg) return dep->conflict; } -int apk_dep_is_materialized_or_provided(struct apk_dependency *dep, struct apk_package *pkg) -{ - int i; - - if (pkg == NULL) - return dep->conflict; - - if (dep->name == pkg->name) - return apk_dep_is_materialized(dep, pkg); - - for (i = 0; i < pkg->provides->num; i++) { - struct apk_provider p; - - if (pkg->provides->item[i].name != dep->name) - continue; - p = APK_PROVIDER_FROM_PROVIDES(pkg, &pkg->provides->item[i]); - return apk_dep_is_provided(dep, &p); - } - - return dep->conflict; -} - int apk_dep_analyze(struct apk_dependency *dep, struct apk_package *pkg) { struct apk_dependency *p; |