aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlice Ferrazzi <alicef@gentoo.org>2017-08-07 01:46:02 +0900
committerAlice Ferrazzi <alicef@gentoo.org>2017-08-07 01:46:02 +0900
commitcb0d9a403884fa95b7f08464ac411452c5a00fb9 (patch)
tree267a5e4857338841c37a6c93e682b928318b04fa /elivepatch_client/client/checkers.py
parentrenamed function (diff)
downloadelivepatch-cb0d9a403884fa95b7f08464ac411452c5a00fb9.tar.gz
elivepatch-cb0d9a403884fa95b7f08464ac411452c5a00fb9.tar.bz2
elivepatch-cb0d9a403884fa95b7f08464ac411452c5a00fb9.zip
improved function for get patches list from eapply_user patches and temporary
folder.
Diffstat (limited to 'elivepatch_client/client/checkers.py')
-rw-r--r--elivepatch_client/client/checkers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/elivepatch_client/client/checkers.py b/elivepatch_client/client/checkers.py
index 61e9a02..b27a231 100644
--- a/elivepatch_client/client/checkers.py
+++ b/elivepatch_client/client/checkers.py
@@ -25,11 +25,11 @@ class Kernel(object):
"""
Manage kernels files
"""
- def __init__(self, restserver_url, session_uuid=None):
+ def __init__(self, restserver_url, kernel_version, session_uuid=None):
self.config_fullpath = ''
self.main_patch_fullpath = ''
self.restserver_url = restserver_url
- self.kernel_version = None
+ self.kernel_version = kernel_version
if session_uuid:
self.session_uuid = session_uuid
else:
@@ -65,7 +65,7 @@ class Kernel(object):
# Store uncompressed temporary file
temporary_config.write(config)
# Get kernel version from the configuration file header
- self.kernel_version = f_action.config_kernel_version(temporary_config)
+ #self.kernel_version = f_action.config_kernel_version(temporary_config)
self.rest_manager.set_kernel_version(self.kernel_version)
print('debug: kernel version = ' + self.rest_manager.get_kernel_version())