summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_download.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/opkg_download.c')
-rw-r--r--libopkg/opkg_download.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c
index 4160b97..27b9d2e 100644
--- a/libopkg/opkg_download.c
+++ b/libopkg/opkg_download.c
@@ -182,7 +182,9 @@ int opkg_download(opkg_conf_t *conf, const char *src, const char *dest_file_name
else
return -1;
- printf ("\n");
+ /* if no custom progress handler was set, we need to clear the default progress bar */
+ if (!opkg_cb_download_progress)
+ printf ("\n");
err = file_move(tmp_file_location, dest_file_name);