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:58:46 +0200
commit3890035c21e40aca7d5360bfc40e4b7ab9f10c50 (patch)
tree51e6c1d34819e3cfa9c46847721097e9b9b3baea /src
parent1c7c53832084a460ad1a385a0946209eeff327fa (diff)
downloadapk-tools-3890035c21e40aca7d5360bfc40e4b7ab9f10c50.tar.gz
apk-tools-3890035c21e40aca7d5360bfc40e4b7ab9f10c50.tar.bz2
apk-tools-3890035c21e40aca7d5360bfc40e4b7ab9f10c50.tar.xz
apk-tools-3890035c21e40aca7d5360bfc40e4b7ab9f10c50.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 70b7460..e495cbb 100644
--- a/src/app_update.c
+++ b/src/app_update.c
@@ -17,6 +17,7 @@
static int update_main(void *ctx, struct apk_database *db, struct apk_string_array *args)
{
struct apk_repository *repo;
+ struct apk_url_print urlp;
int i;
char buf[32] = "OK:";
@@ -29,9 +30,10 @@ static int update_main(void *ctx, struct apk_database *db, struct apk_string_arr
if (APK_BLOB_IS_NULL(repo->description))
continue;
- apk_message(BLOB_FMT " [%s]",
+ apk_url_parse(&urlp, db->repos[i].url);
+ apk_message(BLOB_FMT " [" URL_FMT "]",
BLOB_PRINTF(repo->description),
- db->repos[i].url);
+ URL_PRINTF(urlp));
}
if (db->repo_update_errors != 0)