blob: 47fa5fa7863e5dcc66d32589a9bc9b8f2fd6f068 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
From 557f48ab5b08afcb461f3a94891f4ed010da7eea Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Thu, 26 Jul 2018 17:15:14 +0800
Subject: [PATCH 54/65] tweak MAX_TREEINFO_DOWNLOAD_RETRIES
Do not need to retry so many times.
Tweak log debug to log info.
Upstream-Status: Inappropriate [oe specific]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
pyanaconda/payload/__init__.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/payload/__init__.py b/pyanaconda/payload/__init__.py
index 88a2685..f67a4cd 100644
--- a/pyanaconda/payload/__init__.py
+++ b/pyanaconda/payload/__init__.py
@@ -75,7 +75,7 @@ USER_AGENT = "%s (anaconda)/%s" % (productName, productVersion)
from distutils.version import LooseVersion
-MAX_TREEINFO_DOWNLOAD_RETRIES = 6
+MAX_TREEINFO_DOWNLOAD_RETRIES = 1
def versionCmp(v1, v2):
@@ -710,9 +710,9 @@ class Payload(object):
version = "rawhide"
except configparser.Error:
pass
- log.debug("using treeinfo release version of %s", version)
+ log.info("using treeinfo release version of %s", version)
else:
- log.debug("using default release version of %s", version)
+ log.info("using default release version of %s", version)
return version
--
2.7.4
|