summaryrefslogtreecommitdiff
path: root/src/package.c
diff options
context:
space:
mode:
authorDaniel Kolesa <daniel@octaforge.org>2022-03-31 01:58:27 +0200
committerDaniel Kolesa <daniel@octaforge.org>2022-03-31 01:59:50 +0200
commitd06a99128fa08716d4a84bb1925f69879e2234a2 (patch)
treefdf241407c756a370bbe91c908c652f363e6b0c5 /src/package.c
parentfeec480b345e7c4f4ab262bdf7a2a3ebce5a31a3 (diff)
downloadapk-tools-d06a99128fa08716d4a84bb1925f69879e2234a2.tar.gz
apk-tools-d06a99128fa08716d4a84bb1925f69879e2234a2.tar.bz2
apk-tools-d06a99128fa08716d4a84bb1925f69879e2234a2.tar.xz
apk-tools-d06a99128fa08716d4a84bb1925f69879e2234a2.zip
package: respect version fuzziness when creating dep from adb
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/package.c b/src/package.c
index 138ac6c..ee34595 100644
--- a/src/package.c
+++ b/src/package.c
@@ -461,6 +461,7 @@ void apk_dep_from_adb(struct apk_dependency *dep, struct apk_database *db, struc
*dep = (struct apk_dependency) {
.name = apk_db_get_name(db, adb_ro_blob(d, ADBI_DEP_NAME)),
.version = apk_atomize_dup(&db->atoms, adb_ro_blob(d, ADBI_DEP_VERSION)),
+ .fuzzy = !!(mask & APK_VERSION_FUZZY),
.conflict = !!(mask & APK_VERSION_CONFLICT),
.result_mask = (mask & ~APK_VERSION_CONFLICT) ?: APK_VERSION_EQUAL,
};