]> sjero.net Git - wget/commitdiff
Better messages for --spider without -r.
authorMicah Cowan <micah@cowan.name>
Mon, 11 Feb 2008 22:55:25 +0000 (14:55 -0800)
committerMicah Cowan <micah@cowan.name>
Mon, 11 Feb 2008 22:55:25 +0000 (14:55 -0800)
src/ChangeLog
src/http.c

index dedc796786c5b214c960ed3a7811c0f00ff26688..c78ee268afe325f1d60d84ed9ced3c3dcc2434f4 100644 (file)
@@ -1,3 +1,8 @@
+2008-02-11  Benno Schulenberg  <bensberg@justemail.net>
+
+       * http.c: More accurate and descriptive messages for when a file
+       won't be retrieved during spider-mode.
+
 2008-02-10  Micah Cowan  <micah@cowan.name>
 
        * http.c: Added existence_checked member to the http_stat
index 6cc46616e9ef39685d6fd2bb08a923c0f64c2a9b..ec815c8ff5061dddc36ebdfbe7073f630185b473 100644 (file)
@@ -2673,8 +2673,17 @@ Remote file exists but does not contain any link -- not retrieving.\n\n"));
                     }
                   else
                     {
-                      logprintf (LOG_VERBOSE, _("\
-Remote file exists but recursion is disabled -- not retrieving.\n\n"));
+                      if (*dt & TEXTHTML)
+                        {
+                          logprintf (LOG_VERBOSE, _("\
+Remote file exists and could contain further links,\n\
+but recursion is disabled -- not retrieving.\n\n"));
+                        }
+                      else 
+                        {
+                          logprintf (LOG_VERBOSE, _("\
+Remote file exists.\n\n"));
+                        }
                       ret = RETROK; /* RETRUNNEEDED is not for caller. */
                       goto exit;
                     }