summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Denes <caskd@redxen.eu>2020-12-19 10:10:33 +0000
committerTimo Teräs <timo.teras@iki.fi>2020-12-29 13:52:29 +0200
commit9e9a9a2e71c80cabc12c6365132d1e6c26a24425 (patch)
tree5c8676959887f129a2d963211f6a6f783234dea2 /src
parent223e9990165e6f174a6563e9bbb6f4ea0a561f62 (diff)
downloadapk-tools-9e9a9a2e71c80cabc12c6365132d1e6c26a24425.tar.gz
apk-tools-9e9a9a2e71c80cabc12c6365132d1e6c26a24425.tar.bz2
apk-tools-9e9a9a2e71c80cabc12c6365132d1e6c26a24425.tar.xz
apk-tools-9e9a9a2e71c80cabc12c6365132d1e6c26a24425.zip
apk_update: use URL_PRINTF
Diffstat (limited to 'src')
-rw-r--r--src/app_update.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app_update.c b/src/app_update.c
index 3a01381..533cd1c 100644
--- a/src/app_update.c
+++ b/src/app_update.c
@@ -19,6 +19,7 @@ static int update_main(void *ctx, struct apk_ctx *ac, struct apk_string_array *a
struct apk_out *out = &ac->out;
struct apk_database *db = ac->db;
struct apk_repository *repo;
+ struct apk_url_print urlp;
int i;
char buf[32] = "OK:";
@@ -31,9 +32,10 @@ static int update_main(void *ctx, struct apk_ctx *ac, struct apk_string_array *a
if (APK_BLOB_IS_NULL(repo->description))
continue;
- apk_msg(out, BLOB_FMT " [%s]",
+ apk_url_parse(&urlp, db->repos[i].url);
+ apk_msg(out, BLOB_FMT " [" URL_FMT "]",
BLOB_PRINTF(repo->description),
- db->repos[i].url);
+ URL_PRINTF(urlp));
}
if (db->repo_update_errors != 0)