]> sjero.net Git - wget/commitdiff
[svn] Don't print download summary if nothing has been downloaded.
authorhniksic <devnull@localhost>
Sat, 17 Sep 2005 13:07:00 +0000 (06:07 -0700)
committerhniksic <devnull@localhost>
Sat, 17 Sep 2005 13:07:00 +0000 (06:07 -0700)
src/ChangeLog
src/main.c

index e77e711fd1472c8ab72fef822fe58dc49011a88e..e02968a8ad9579499a0adf6982f71d8daeabed9f 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * main.c (main): Don't print the summary if nothing has been downloaded.
+
 2005-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * retr.c (retr_rate): Rename parameter from MSECS to SECS since it
index 6107a51dc599645c74906592a35c8a5732051eb4..0fc5b3d70b17412b34981e7e5c07efb7b051eaa4 100644 (file)
@@ -968,9 +968,11 @@ Can't timestamp and not clobber old files at the same time.\n"));
                   opt.input_filename);
     }
   /* Print the downloaded sum.  */
-  if (opt.recursive || opt.page_requisites
-      || nurl > 1
-      || (opt.input_filename && total_downloaded_bytes != 0))
+  if ((opt.recursive || opt.page_requisites
+       || nurl > 1
+       || (opt.input_filename && total_downloaded_bytes != 0))
+      &&
+      total_downloaded_bytes != 0)
     {
       logprintf (LOG_NOTQUIET,
                 _("FINISHED --%s--\nDownloaded: %d files, %s in %s (%s)\n"),