[master 1/1] Cleaner logging of .treeinfo return conditions in dependant function.
jcpunk
installerbot-noreply at redhat.com
Tue Oct 20 18:43:57 UTC 2015
From: Pat Riehecky <riehecky at fnal.gov>
Use of the fall through value is logged a bit more clearly.
---
pyanaconda/packaging/__init__.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/packaging/__init__.py b/pyanaconda/packaging/__init__.py
index a260d7b..5f8fd5a 100644
--- a/pyanaconda/packaging/__init__.py
+++ b/pyanaconda/packaging/__init__.py
@@ -405,8 +405,10 @@ def _getReleaseVersion(self, url):
version = "rawhide"
except configparser.Error:
pass
+ log.debug("using treeinfo release version of %s", version)
+ else:
+ log.debug("using default release version of %s", version)
- log.debug("got a release version of %s", version)
return version
##
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/5d8ba2ab9adbe5247f6a9c58cbae7b7dccc6d1ba
More information about the anaconda-patches
mailing list