From 89251d090672b412913462d2b6316d377512efed Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Thu, 21 Dec 2017 12:19:34 +0200 Subject: [PATCH] Silence pocketlint bad-preconf-access warnings --- src/pylorax/api/yumbase.py | 2 ++ src/sbin/lorax | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pylorax/api/yumbase.py b/src/pylorax/api/yumbase.py index 996bfeca..c770be90 100644 --- a/src/pylorax/api/yumbase.py +++ b/src/pylorax/api/yumbase.py @@ -14,6 +14,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # +# pylint: disable=bad-preconf-access + import logging log = logging.getLogger("lorax-composer") diff --git a/src/sbin/lorax b/src/sbin/lorax index 5048419b..596c169e 100755 --- a/src/sbin/lorax +++ b/src/sbin/lorax @@ -19,6 +19,8 @@ # # Red Hat Author(s): Martin Gracik # +# pylint: disable=bad-preconf-access + from __future__ import print_function import logging @@ -331,7 +333,6 @@ def get_yum_base_object(installroot, repositories, mirrorlists=None, repo_files= yb.preconf.fn = yumconf yb.preconf.root = installroot - #yb.repos.setCacheDir(cachedir) if releasever: yb.preconf.releasever = releasever