diff options
author | Alex Denes <caskd@redxen.eu> | 2020-12-19 10:10:33 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-04-11 14:03:57 +0300 |
commit | 839f1780de3d3625dbdcc020f57de260a5656421 (patch) | |
tree | 51059f1a182f7230905d2cc59b53baefa7ef3c0e /src | |
parent | ef2193896386b0a8beed3a27ce39e2f97776c3f3 (diff) | |
download | apk-tools-839f1780de3d3625dbdcc020f57de260a5656421.tar.gz apk-tools-839f1780de3d3625dbdcc020f57de260a5656421.tar.bz2 apk-tools-839f1780de3d3625dbdcc020f57de260a5656421.tar.xz apk-tools-839f1780de3d3625dbdcc020f57de260a5656421.zip |
apk_update: use URL_PRINTF
(cherry picked from commit 3890035c21e40aca7d5360bfc40e4b7ab9f10c50)
Diffstat (limited to 'src')
-rw-r--r-- | src/update.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c index c7b0926..a9fda0b 100644 --- a/src/update.c +++ b/src/update.c @@ -19,6 +19,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:"; @@ -31,9 +32,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) |