diff options
author | Timo Teräs <timo.teras@iki.fi> | 2011-03-29 13:09:45 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2011-03-29 13:09:45 +0300 |
commit | e783f20eff95a22452856eb3e33720d2d8c23a09 (patch) | |
tree | 8f38e432dca4d94594729601fb3e1444687c740b | |
parent | 8e01be477762769b3f5bda4bd78b30bec699fb0a (diff) | |
download | apk-tools-e783f20eff95a22452856eb3e33720d2d8c23a09.tar.gz apk-tools-e783f20eff95a22452856eb3e33720d2d8c23a09.tar.bz2 apk-tools-e783f20eff95a22452856eb3e33720d2d8c23a09.tar.xz apk-tools-e783f20eff95a22452856eb3e33720d2d8c23a09.zip |
fetch: fix package version print
broke after making the version field an atom because the printf
was not updated accordingly.
-rw-r--r-- | src/fetch.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fetch.c b/src/fetch.c index b67a189..0f39ecd 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -109,11 +109,12 @@ static int fetch_package(struct fetch_ctx *fctx, return 0; } - apk_message("Downloading %s-%s", pkg->name->name, pkg->version); + apk_message("Downloading %s-" BLOB_FMT, pkg->name->name, + BLOB_PRINTF(*pkg->version)); repo = apk_db_select_repo(db, pkg); if (repo == NULL) { - apk_error("%s-%s: package is not currently available", - pkg->name->name, pkg->version); + apk_error("%s-" BLOB_FMT ": package is not currently available", + pkg->name->name, BLOB_PRINTF(*pkg->version)); return -1; } |