[Jython-checkins] jython: sys-package-mgr console messages silenced by default. Fixes #1572.

jeff.allen jython-checkins at python.org
Mon Apr 20 00:50:15 CEST 2015


https://hg.python.org/jython/rev/7f905bb4c179
changeset:   7682:7f905bb4c179
user:        Jeff Allen <ja.py at farowl.co.uk>
date:        Sat Apr 18 13:43:18 2015 +0100
summary:
  sys-package-mgr console messages silenced by default. Fixes #1572.

The messages concerned are demoted from "message" to "comment" in
Jython's private logging framework. Thanks to Emmanuel Jannetti.

files:
  NEWS                                                           |  4 ++++
  src/org/python/core/packagecache/CachedJarsPackageManager.java |  4 ++--
  2 files changed, 6 insertions(+), 2 deletions(-)


diff --git a/NEWS b/NEWS
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,10 @@
 
 For more details, please see https://hg.python.org/jython
 
+Jython 2.7rc3
+  Bugs fixed
+   - [ 1572 ] sys-package-mgr console messages silenced by default. Thanks to Emmanuel Jannetti.
+
 Jython 2.7rc2
   Bugs fixed
    - [ 2301 ] time.strftime now always returns a bytestring (fixes pip on Japanese locales)
diff --git a/src/org/python/core/packagecache/CachedJarsPackageManager.java b/src/org/python/core/packagecache/CachedJarsPackageManager.java
--- a/src/org/python/core/packagecache/CachedJarsPackageManager.java
+++ b/src/org/python/core/packagecache/CachedJarsPackageManager.java
@@ -272,7 +272,7 @@
 
                 if ((entry == null || !(new File(entry.cachefile).exists()))
                         && cache) {
-                    message("processing new jar, '" + jarcanon + "'");
+                    comment("processing new jar, '" + jarcanon + "'");
 
                     String jarname;
                     if (localfile) {
@@ -303,7 +303,7 @@
                 if (caching) {
                     this.indexModified = true;
                     if (entry.mtime != 0) {
-                        message("processing modified jar, '" + jarcanon + "'");
+                        comment("processing modified jar, '" + jarcanon + "'");
                     }
                     entry.mtime = mtime;
                 }

-- 
Repository URL: https://hg.python.org/jython


More information about the Jython-checkins mailing list