summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-02-24 18:27:55 +0200
committerTimo Teräs <timo.teras@iki.fi>2012-02-24 18:29:30 +0200
commit12bdec38a376f787a8aa621c965b561387b445ce (patch)
tree055074fe2eb53047f62282ab11dc8ecc4dadd06a /src/apk_database.h
parent99145e2c0dc0b5b3b5a2a72fb1bff140d1f583f3 (diff)
downloadapk-tools-12bdec38a376f787a8aa621c965b561387b445ce.tar.gz
apk-tools-12bdec38a376f787a8aa621c965b561387b445ce.tar.bz2
apk-tools-12bdec38a376f787a8aa621c965b561387b445ce.tar.xz
apk-tools-12bdec38a376f787a8aa621c965b561387b445ce.zip
solver, dot: elementary provides fixes
implementation is still not near finished, but now at least it can handle it to a minimum degree. many cases are not done right yet, though. ref #574.
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 2dbf043..137063b 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -78,8 +78,8 @@ struct apk_db_dir_instance {
gid_t gid;
};
-#define PROVIDER_FMT "%s-"BLOB_FMT
-#define PROVIDER_PRINTF(p) (p)->pkg->name->name, BLOB_PRINTF(*(p)->version)
+#define PROVIDER_FMT "%s%s"BLOB_FMT
+#define PROVIDER_PRINTF(n,p) (n)->name, (p)->version->len ? "-" : "", BLOB_PRINTF(*(p)->version)
struct apk_provider {
struct apk_package *pkg;