r4388 - trunk/src/target/opkg/libopkg
thomas at sita.openmoko.org
thomas at sita.openmoko.org
Tue Apr 22 13:12:15 CEST 2008
Author: thomas
Date: 2008-04-22 13:12:13 +0200 (Tue, 22 Apr 2008)
New Revision: 4388
Modified:
trunk/src/target/opkg/libopkg/opkg_download.c
Log:
libopkg: remove default progress bar
Modified: trunk/src/target/opkg/libopkg/opkg_download.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg_download.c 2008-04-22 10:53:38 UTC (rev 4387)
+++ trunk/src/target/opkg/libopkg/opkg_download.c 2008-04-22 11:12:13 UTC (rev 4388)
@@ -58,23 +58,6 @@
opkg_cb_download_progress (p, url);
return 0;
}
-
- /* skip progress bar if we haven't done started yet
- * this prevents drawing the progress bar if we receive an error such as
- * file not found */
- if (t == 0)
- return 0;
-
- printf ("\r%3d%% |", p);
- for (i = 1; i < 73; i++)
- {
- if (i <= p * 0.73)
- printf ("=");
- else
- printf ("-");
- }
- printf ("|");
- fflush(stdout);
return 0;
}
@@ -88,8 +71,6 @@
opkg_message(conf,OPKG_NOTICE,"Downloading %s\n", src);
- fflush(stdout);
-
if (str_starts_with(src, "file:")) {
int ret;
const char *file_src = src + 5;
@@ -157,10 +138,6 @@
else
return -1;
- /* 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);
free(tmp_file_location);
More information about the commitlog
mailing list