From 214b7165eeef901ad9d5cfcacc8a0c5c3778416d Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 11 Aug 2015 21:08:44 +0300 Subject: [PATCH] Update lists --- slpkg/slack/patches.py | 2 +- slpkg/slpkg_update.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/slpkg/slack/patches.py b/slpkg/slack/patches.py index 0cda3441..3c8fa685 100644 --- a/slpkg/slack/patches.py +++ b/slpkg/slack/patches.py @@ -204,7 +204,7 @@ class Patches(object): """ for core in self.upgrade_all: if "kernel" in core: - if self.meta.default_answer == "y": + if self.meta.default_answer in ["y", "Y"]: answer = self.meta.default_answer else: print("") diff --git a/slpkg/slpkg_update.py b/slpkg/slpkg_update.py index 871c9b77..883e6565 100644 --- a/slpkg/slpkg_update.py +++ b/slpkg/slpkg_update.py @@ -52,7 +52,7 @@ def it_self_update(): if line.startswith("__version_info__"): __new_version__ = ".".join(re.findall(r"\d+", line)) if __new_version__ > _meta_.__version__: - if _meta_.default_answer == "y": + if _meta_.default_answer in ["y", "Y"]: answer = _meta_.default_answer else: print("\nNew version '{0}-{1}' is available !\n".format(