Commit 3867b4c7 authored by Natanael Copa's avatar Natanael Copa
Browse files

Revert "db: change format for dependencies"

This reverts commit b852d670.
parent f54b7bc3
...@@ -124,12 +124,12 @@ void apk_deps_parse(struct apk_database *db, ...@@ -124,12 +124,12 @@ void apk_deps_parse(struct apk_database *db,
start = blob.ptr; start = blob.ptr;
for (i = 0; i < blob.len; i++) { for (i = 0; i < blob.len; i++) {
if (blob.ptr[i] != ' ' && blob.ptr[i] != '\n') if (blob.ptr[i] != ',' && blob.ptr[i] != '\n')
continue; continue;
parse_depend(db, depends, parse_depend(db, depends,
APK_BLOB_PTR_PTR(start, &blob.ptr[i-1])); APK_BLOB_PTR_PTR(start, &blob.ptr[i-1]));
start = &blob.ptr[i]; start = &blob.ptr[i+1];
} }
parse_depend(db, depends, parse_depend(db, depends,
APK_BLOB_PTR_PTR(start, &blob.ptr[i-1])); APK_BLOB_PTR_PTR(start, &blob.ptr[i-1]));
...@@ -145,7 +145,7 @@ int apk_deps_format(char *buf, int size, ...@@ -145,7 +145,7 @@ int apk_deps_format(char *buf, int size,
for (i = 0; i < depends->num - 1; i++) for (i = 0; i < depends->num - 1; i++)
n += snprintf(&buf[n], size-n, n += snprintf(&buf[n], size-n,
"%s ", "%s, ",
depends->item[i].name->name); depends->item[i].name->name);
n += snprintf(&buf[n], size-n, n += snprintf(&buf[n], size-n,
"%s\n", "%s\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment