FIX: progressbar: Print correct "mode:"
commitf4fac23f3e49bfa28dde9b45f9aaa8b086165c84
authorToni Gundogdu <legatvs@gmail.com>
Tue, 11 Jun 2013 14:28:02 +0000 (11 17:28 +0300)
committerToni Gundogdu <legatvs@gmail.com>
Tue, 11 Jun 2013 19:30:35 +0000 (11 22:30 +0300)
tree74c4a4698d0dbae62e74885bc585057f88e10366
parentfb03b632fb03958374fb1239fd2c91c90b1fd27d
FIX: progressbar: Print correct "mode:"

The progressbar would always print "mode: write", even when the transfer
was resumed. This commit fixes this and melds "skip <transfer>" messages
into the lpbar (lpbar_print) output.

Notable changes:
* get/http.c: Do not print "skip <transfer>: <reason>" (see below)
* get/http.c: Relocate the lpbar_print call (+additional calls)
* pbar/lpbar.h: Add lpbar_mode={retrieved_already,forced_skip,...}
* pbar/lpbar.c: Reimplement lpbar_print
  - Remove 'gboolean skip_transfer' parameter
  - Print "skip <reason>" with "mode:"

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
src/get/http.c
src/pbar/lpbar.c
src/pbar/lpbar.h