Re: [Libreoffice] [PATCH] Show progress bars when downloading external dependencies

2011-06-11 Thread Luke Symes
On Fri, Jun 10, 2011 at 12:21 PM, Norbert Thiebaud wrote:

> give it a try and look a what the log looks like ...


I think the log looks quite good with " --progress=dot:mega". Could this get
pushed to master?

Regards,

Luke.
diff --git a/download b/download
index 0af6751..2c1846b 100755
--- a/download
+++ b/download
@@ -129,7 +129,7 @@ downloaditem()
 if [ ! -f "../$2" ]; then
 echo $2
 if [ ! -z "$wget" ]; then
-$wget -nv -N $1/$2 2>&1 | tee -a $logfile
+$wget --progress=dot:mega -N $1/$2 2>&1 | tee -a $logfile
 else
 echo fetching $2
 $curl $file_date_check -O $1/$2 2>&1 | tee -a $logfile
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] [PATCH] Show progress bars when downloading external dependencies

2011-06-09 Thread Norbert Thiebaud
On Thu, Jun 9, 2011 at 7:12 PM, Luke Symes  wrote:
> On Fri, Jun 10, 2011 at 11:57 AM, Norbert Thiebaud 
> wrote:
>>
>> The reason wget does not show the progress bar unless you force it to,
>> is because the output, here,  is piped to a file.
>> presenting progress bar and putting the output in a file make for a
>> big and ugly log file.
>> At the very least you don't want --progress=bar:force but
>> --progress=dot:mega
>
>
> Sigh, so we can't have our cake and eat it too... I really appreciate having
> feedback for downloads. However, the log file doesn't need it, only the
> user. Do you think --progress=dot:mega is acceptable for log file niceness?

yes, that's why I suggested it :-)

> There would still be the chatter with the server coming through due to
> having to remove the "-nv" (non-verbose) switch.

yeah but that is a couple or maybe half a dozen of lines per object,
not 100's or even 1000's

give it a try and look a what the log looks like ...

hey, and if that is too disturbing we can always change it back :-)

Norbert
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] [PATCH] Show progress bars when downloading external dependencies

2011-06-09 Thread Luke Symes
On Fri, Jun 10, 2011 at 11:57 AM, Norbert Thiebaud wrote:

> The reason wget does not show the progress bar unless you force it to,
> is because the output, here,  is piped to a file.
> presenting progress bar and putting the output in a file make for a
> big and ugly log file.
> At the very least you don't want --progress=bar:force but
> --progress=dot:mega


Sigh, so we can't have our cake and eat it too... I really appreciate having
feedback for downloads. However, the log file doesn't need it, only the
user. Do you think --progress=dot:mega is acceptable for log file niceness?
There would still be the chatter with the server coming through due to
having to remove the "-nv" (non-verbose) switch.

Luke.
diff --git a/download b/download
index 0af6751..2c1846b 100755
--- a/download
+++ b/download
@@ -129,7 +129,7 @@ downloaditem()
 if [ ! -f "../$2" ]; then
 echo $2
 if [ ! -z "$wget" ]; then
-$wget -nv -N $1/$2 2>&1 | tee -a $logfile
+$wget --progress=dot:mega -N $1/$2 2>&1 | tee -a $logfile
 else
 echo fetching $2
 $curl $file_date_check -O $1/$2 2>&1 | tee -a $logfile
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] [PATCH] Show progress bars when downloading external dependencies

2011-06-09 Thread Norbert Thiebaud
On Thu, Jun 9, 2011 at 6:36 PM, Luke Symes  wrote:
> Hi,
> When I was running "make fetch", I found myself wanting to know the progress
> of the downloads, as my internet is by no means instantaneous. So, I found
> how to make wget display a nice progress bar. Could this be added to master?

Luke,

The reason wget does not show the progress bar unless you force it to,
is because the output, here,  is piped to a file.
presenting progress bar and putting the output in a file make for a
big and ugly log file.
At the very least you don't want --progress=bar:force but --progress=dot:mega

Norbert
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] [PATCH] Show progress bars when downloading external dependencies

2011-06-09 Thread Luke Symes
Hi,

When I was running "make fetch", I found myself wanting to know the progress
of the downloads, as my internet is by no means instantaneous. So, I found
how to make wget display a nice progress bar. Could this be added to master?

Kind regards,

Luke.
diff --git a/download b/download
index 0af6751..2c1846b 100755
--- a/download
+++ b/download
@@ -129,7 +129,7 @@ downloaditem()
 if [ ! -f "../$2" ]; then
 echo $2
 if [ ! -z "$wget" ]; then
-$wget -nv -N $1/$2 2>&1 | tee -a $logfile
+$wget --progress=bar:force -N $1/$2 2>&1 | tee -a $logfile
 else
 echo fetching $2
 $curl $file_date_check -O $1/$2 2>&1 | tee -a $logfile
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice