summaryrefslogtreecommitdiff
path: root/src/package.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-09 11:00:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-09 11:00:20 +0000
commit3867b4c71fafe4b9eb685f8aebfcd5fd57135b9e (patch)
treed7639a8b1e19e8876f36e1439887971d0e530499 /src/package.c
parentf54b7bc3201726a7346b0920e561f5b68fa0af7d (diff)
downloadapk-tools-3867b4c71fafe4b9eb685f8aebfcd5fd57135b9e.tar.gz
apk-tools-3867b4c71fafe4b9eb685f8aebfcd5fd57135b9e.tar.bz2
apk-tools-3867b4c71fafe4b9eb685f8aebfcd5fd57135b9e.tar.xz
apk-tools-3867b4c71fafe4b9eb685f8aebfcd5fd57135b9e.zip
Revert "db: change format for dependencies"
This reverts commit b852d670a985c4da11b012707acaa63b8abdfadc.
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/package.c b/src/package.c
index b6b211c..9f33201 100644
--- a/src/package.c
+++ b/src/package.c
@@ -124,12 +124,12 @@ void apk_deps_parse(struct apk_database *db,
start = blob.ptr;
for (i = 0; i < blob.len; i++) {
- if (blob.ptr[i] != ' ' && blob.ptr[i] != '\n')
+ if (blob.ptr[i] != ',' && blob.ptr[i] != '\n')
continue;
parse_depend(db, depends,
APK_BLOB_PTR_PTR(start, &blob.ptr[i-1]));
- start = &blob.ptr[i];
+ start = &blob.ptr[i+1];
}
parse_depend(db, depends,
APK_BLOB_PTR_PTR(start, &blob.ptr[i-1]));
@@ -145,7 +145,7 @@ int apk_deps_format(char *buf, int size,
for (i = 0; i < depends->num - 1; i++)
n += snprintf(&buf[n], size-n,
- "%s ",
+ "%s, ",
depends->item[i].name->name);
n += snprintf(&buf[n], size-n,
"%s\n",