diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-01-12 14:33:29 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-01-12 14:33:29 +0200 |
commit | 1f9a36de6828b87ba9d7dedcae2de6092eed4f41 (patch) | |
tree | f928b3e94711951f603624a19924c290da362b8a /src/add.c | |
parent | 30965aa86735f7d2dcd544bae0b788195c51f336 (diff) | |
download | apk-tools-1f9a36de6828b87ba9d7dedcae2de6092eed4f41.tar.gz apk-tools-1f9a36de6828b87ba9d7dedcae2de6092eed4f41.tar.bz2 apk-tools-1f9a36de6828b87ba9d7dedcae2de6092eed4f41.tar.xz apk-tools-1f9a36de6828b87ba9d7dedcae2de6092eed4f41.zip |
db: support line feed as 'world' dependency separator
* default writing the world with spaces if a space is found
(for backwards compatibility) for now
Diffstat (limited to 'src/add.c')
-rw-r--r-- | src/add.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -111,7 +111,7 @@ static int add_main(void *ctx, struct apk_database *db, int argc, char **argv) apk_blob_t b = APK_BLOB_STR(argv[i]); apk_blob_pull_dep(&b, db, &dep); - if (APK_BLOB_IS_NULL(b)) { + if (APK_BLOB_IS_NULL(b) || b.len > 0) { apk_error("'%s' is not a valid dependency, format is name(@tag)([<>=]version)", argv[i]); return -1; |