mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Improve messages when writing a document to stdout.
This commit is contained in:
parent
1ebd5828cb
commit
fb7916aa1d
@ -1,3 +1,9 @@
|
|||||||
|
2009-02-21 Steven Schubiger <stsc@member.fsf.org>
|
||||||
|
|
||||||
|
* http.c (http_loop): When a document is written to
|
||||||
|
standard output, don't claim it has been saved to a file.
|
||||||
|
Addresses bug #20520.
|
||||||
|
|
||||||
2009-02-18 Steven Schubiger <stsc@members.fsf.org>
|
2009-02-18 Steven Schubiger <stsc@members.fsf.org>
|
||||||
|
|
||||||
* recur.h: Remove the dangling declaration for recursive_cleanup().
|
* recur.h: Remove the dangling declaration for recursive_cleanup().
|
||||||
|
18
src/http.c
18
src/http.c
@ -2756,9 +2756,14 @@ Remote file exists.\n\n"));
|
|||||||
{
|
{
|
||||||
if (*dt & RETROKF)
|
if (*dt & RETROKF)
|
||||||
{
|
{
|
||||||
|
bool write_to_stdout = (opt.output_document && HYPHENP (opt.output_document));
|
||||||
|
|
||||||
logprintf (LOG_VERBOSE,
|
logprintf (LOG_VERBOSE,
|
||||||
_("%s (%s) - %s saved [%s/%s]\n\n"),
|
write_to_stdout
|
||||||
tms, tmrate, quote (hstat.local_file),
|
? _("%s (%s) - written to stdout %s[%s/%s]\n\n")
|
||||||
|
: _("%s (%s) - %s saved [%s/%s]\n\n"),
|
||||||
|
tms, tmrate,
|
||||||
|
write_to_stdout ? "" : quote (hstat.local_file),
|
||||||
number_to_static_string (hstat.len),
|
number_to_static_string (hstat.len),
|
||||||
number_to_static_string (hstat.contlen));
|
number_to_static_string (hstat.contlen));
|
||||||
logprintf (LOG_NONVERBOSE,
|
logprintf (LOG_NONVERBOSE,
|
||||||
@ -2787,9 +2792,14 @@ Remote file exists.\n\n"));
|
|||||||
{
|
{
|
||||||
if (*dt & RETROKF)
|
if (*dt & RETROKF)
|
||||||
{
|
{
|
||||||
|
bool write_to_stdout = (opt.output_document && HYPHENP (opt.output_document));
|
||||||
|
|
||||||
logprintf (LOG_VERBOSE,
|
logprintf (LOG_VERBOSE,
|
||||||
_("%s (%s) - %s saved [%s]\n\n"),
|
write_to_stdout
|
||||||
tms, tmrate, quote (hstat.local_file),
|
? _("%s (%s) - written to stdout %s[%s]\n\n")
|
||||||
|
: _("%s (%s) - %s saved [%s]\n\n"),
|
||||||
|
tms, tmrate,
|
||||||
|
write_to_stdout ? "" : quote (hstat.local_file),
|
||||||
number_to_static_string (hstat.len));
|
number_to_static_string (hstat.len));
|
||||||
logprintf (LOG_NONVERBOSE,
|
logprintf (LOG_NONVERBOSE,
|
||||||
"%s URL:%s [%s] -> \"%s\" [%d]\n",
|
"%s URL:%s [%s] -> \"%s\" [%d]\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user