diff options
author | 2017-08-07 15:25:51 +0900 | |
---|---|---|
committer | 2017-08-07 15:25:51 +0900 | |
commit | 4bd63b3ecf2e692c5420bb4089bf10d238dfecd8 (patch) | |
tree | 71350b4e7deeffa43409b1c99238b02a409db5ba | |
parent | improved function for get patches list from eapply_user patches and temporary (diff) | |
download | elivepatch-4bd63b3ecf2e692c5420bb4089bf10d238dfecd8.tar.gz elivepatch-4bd63b3ecf2e692c5420bb4089bf10d238dfecd8.tar.bz2 elivepatch-4bd63b3ecf2e692c5420bb4089bf10d238dfecd8.zip |
renamed command function as internal function
-rw-r--r-- | elivepatch_client/client/patch.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/elivepatch_client/client/patch.py b/elivepatch_client/client/patch.py index 8d5493b..fa8af75 100644 --- a/elivepatch_client/client/patch.py +++ b/elivepatch_client/client/patch.py @@ -32,12 +32,11 @@ class ManaGer(object): for (dirpath, dirnames, filenames) in os.walk(dir): patch_filename.extend(filenames) print('List of current patches:') - print(patch_filename) return patch_filename def load(self, patch_fulldir, livepatch_fulldir): try: - command(['sudo','kpatch','load',livepatch_fulldir]) + _command(['sudo', 'kpatch', 'load', livepatch_fulldir]) print('patch_fulldir:' + str(patch_fulldir) + ' livepatch_fulldir: '+ str(livepatch_fulldir)) self.save(patch_fulldir, livepatch_fulldir) except: @@ -56,7 +55,7 @@ class ManaGer(object): pass -def command(bashCommand, kernel_source_dir=None, env=None): +def _command(bashCommand, kernel_source_dir=None, env=None): """ Popen override function |