summaryrefslogtreecommitdiff
path: root/File-not-found-should-be-ignored-silently.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-11-16 13:19:27 +0000
committerCoprDistGit <infra@openeuler.org>2024-11-16 13:19:27 +0000
commitdc41324914e7fb8451c663f2e83c4daa259e0f75 (patch)
treed52bde2543b54602e59450377c1b2f43cda5f791 /File-not-found-should-be-ignored-silently.patch
parent495915bd411b88bab4e9aa4b6f466072c12dd35d (diff)
automatic import of tcl
Diffstat (limited to 'File-not-found-should-be-ignored-silently.patch')
-rw-r--r--File-not-found-should-be-ignored-silently.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/File-not-found-should-be-ignored-silently.patch b/File-not-found-should-be-ignored-silently.patch
new file mode 100644
index 0000000..408772f
--- /dev/null
+++ b/File-not-found-should-be-ignored-silently.patch
@@ -0,0 +1,45 @@
+From 00f8160e2d52e8df57744c3b02ddda3f8a65d149 Mon Sep 17 00:00:00 2001
+From: "jan.nijtmans" <nijtmans@users.sourceforge.net>
+Date: Sat, 24 Nov 2018 14:59:04 +0000
+Subject: [PATCH] If a pkgIndex file is encountered which produces an error,
+ continue. This shoud fix the Travis build for 9.0 (But same fix should be in
+ 8.7 as well)
+
+---
+ library/package.tcl | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/library/package.tcl b/library/package.tcl
+index c72fbfbbe41..974cbf07956 100644
+--- a/library/package.tcl
++++ b/library/package.tcl
+@@ -493,7 +493,8 @@ proc tclPkgUnknown {name args} {
+ # $file was not readable; silently ignore
+ continue
+ } on error msg {
+- tclLog "error reading package index file $file: $msg"
++ # $file is not usable; silently ignore
++ continue
+ } on ok {} {
+ set procdDirs($dir) 1
+ }
+@@ -511,7 +512,8 @@ proc tclPkgUnknown {name args} {
+ # $file was not readable; silently ignore
+ continue
+ } on error msg {
+- tclLog "error reading package index file $file: $msg"
++ # $file is not usable; silently ignore
++ continue
+ } on ok {} {
+ set procdDirs($dir) 1
+ }
+@@ -595,7 +597,8 @@ proc tcl::MacOSXPkgUnknown {original name args} {
+ # $file was not readable; silently ignore
+ continue
+ } on error msg {
+- tclLog "error reading package index file $file: $msg"
++ # $file is not usable; silently ignore
++ continue
+ } on ok {} {
+ set procdDirs($dir) 1
+ }