package: respect version fuzziness when creating dep from adb

cute-signatures
Daniel Kolesa 2022-03-31 01:58:27 +02:00
parent feec480b34
commit d06a99128f
1 changed files with 1 additions and 0 deletions

View File

@ -461,6 +461,7 @@ void apk_dep_from_adb(struct apk_dependency *dep, struct apk_database *db, struc
*dep = (struct apk_dependency) { *dep = (struct apk_dependency) {
.name = apk_db_get_name(db, adb_ro_blob(d, ADBI_DEP_NAME)), .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)), .version = apk_atomize_dup(&db->atoms, adb_ro_blob(d, ADBI_DEP_VERSION)),
.fuzzy = !!(mask & APK_VERSION_FUZZY),
.conflict = !!(mask & APK_VERSION_CONFLICT), .conflict = !!(mask & APK_VERSION_CONFLICT),
.result_mask = (mask & ~APK_VERSION_CONFLICT) ?: APK_VERSION_EQUAL, .result_mask = (mask & ~APK_VERSION_CONFLICT) ?: APK_VERSION_EQUAL,
}; };