This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH setup 9/9] Avoid messagebox spam with file:// protocol URLs
- From: Jon Turney <jon dot turney at dronecode dot org dot uk>
- To: cygwin-apps at cygwin dot com
- Cc: Ake Rehnman <ake dot rehnman at gmail dot com>
- Date: Tue, 6 Jun 2017 12:54:32 +0100
- Subject: [PATCH setup 9/9] Avoid messagebox spam with file:// protocol URLs
- Authentication-results: sourceware.org; auth=none
- References: <20170606115432.105020-1-jon.turney@dronecode.org.uk>
From: Ake Rehnman <ake.rehnman@gmail.com>
When using a file:// protocol URL for package repo, don't spam messageboxes
warning about absence of compressed setup files. We don't do that for
ftp:// or http:// protocol URLs.
A warning is still given we couldn't find a useable setup.ini from the URL
provided
---
nio-file.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/nio-file.cc b/nio-file.cc
index e69f1ff..fce1b2c 100644
--- a/nio-file.cc
+++ b/nio-file.cc
@@ -26,6 +26,7 @@
#include "resource.h"
#include "msg.h"
#include "filemanip.h"
+#include "LogSingleton.h"
NetIO_File::NetIO_File (char const *Purl):
NetIO (Purl)
@@ -39,8 +40,8 @@ NetIO (Purl)
{
const char *err = strerror (errno);
if (!err)
- err = "(unknown error)";
- note (NULL, IDS_ERR_OPEN_READ, path, err);
+ err = "(unknown error)";
+ Log (LOG_BABBLE) << "Can't open " << path << " for reading: " << err << endLog;
}
}
--
2.12.3