]> git.street.me.uk Git - andy/viking.git/blobdiff - src/download.c
added search capability to datasources.xml, undocumented so far
[andy/viking.git] / src / download.c
index d640d2221f1cd37d0bbbdc62df8d3b7b1c8b3f17..d771483fc42632a52b950bcca760c8fa36c9817d 100644 (file)
@@ -361,7 +361,9 @@ static DownloadResult_t download( const char *hostname, const char *uri, const c
     utimes ( fn, NULL ); /* update mtime of local copy */
 #endif
   } else {
-    g_rename ( tmpfilename, fn ); /* move completely-downloaded file to permanent location */
+     /* move completely-downloaded file to permanent location */
+     if ( g_rename ( tmpfilename, fn ) )
+        g_warning ("%s: file rename failed [%s] to [%s]", __FUNCTION__, tmpfilename, fn );
   }
   unlock_file ( tmpfilename );
   g_free ( tmpfilename );