diff options
author | 2017-08-12 04:33:24 +0900 | |
---|---|---|
committer | 2017-08-12 04:33:24 +0900 | |
commit | e4153f59e68d69d010cf923541cbee1e8235084c (patch) | |
tree | fefea32f87957ff3d07454a93771b2b698b0a7c1 | |
parent | we are saving livepatch and patch files for incremental patches and history, (diff) | |
download | elivepatch-e4153f59e68d69d010cf923541cbee1e8235084c.tar.gz elivepatch-e4153f59e68d69d010cf923541cbee1e8235084c.tar.bz2 elivepatch-e4153f59e68d69d010cf923541cbee1e8235084c.zip |
added PORTAGE_CONFIGROOT for set the path from there get the incremental
patches.
-rw-r--r-- | elivepatch_server/resources/livepatch.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elivepatch_server/resources/livepatch.py b/elivepatch_server/resources/livepatch.py index 5090bdf..8ea47e2 100644 --- a/elivepatch_server/resources/livepatch.py +++ b/elivepatch_server/resources/livepatch.py @@ -66,7 +66,8 @@ class PaTch(object): if os.path.isfile(ebuild_path): # Use a private tmpdir for portage with tempfile.TemporaryDirectory(dir=uuid_dir) as portage_tmpdir: - env = {'ROOT': uuid_dir, 'PORTAGE_TMPDIR': portage_tmpdir} + print('uuid_dir: ' + str(uuid_dir) + ' PORTAGE_TMPDIR: '+str(portage_tmpdir)) + env = {'ROOT': uuid_dir, 'PORTAGE_CONFIGROOT':uuid_dir, 'PORTAGE_TMPDIR': portage_tmpdir} command(['ebuild', ebuild_path, 'clean', 'merge'], env=env) kernel_sources_status = True else: |