Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Loop over the list rather than over the hash table
Baptiste Daroussin committed 9 years ago
commit 2b0c7b354c0772db234a692bc2333c8d30cb3a74
parent ba73c4c
1 file changed +2 -2
modified libpkg/pkg_cudf.c
@@ -128,12 +128,12 @@ cudf_emit_pkg(struct pkg *pkg, int version, FILE *f,
	if (kh_count(pkg->depshash) > 0) {
		if (fprintf(f, "depends: ") < 0)
			return (EPKG_FATAL);
-
		kh_each_value(pkg->depshash, dep, {
+
		LL_FOREACH(pkg->depends, dep) {
			if (cudf_print_element(f, dep->name,
			    column + 1 == kh_count(pkg->depshash), &column) < 0) {
				return (EPKG_FATAL);
			}
-
		});
+
		}
	}

	column = 0;