diff options
author | Mykyta Holubakha <hilobakho@gmail.com> | 2019-06-13 22:18:03 +0300 |
---|---|---|
committer | Mykyta Holubakha <hilobakho@gmail.com> | 2019-06-13 22:18:03 +0300 |
commit | d172112aad6ca4ee589ba8a59bfd1d4212b34192 (patch) | |
tree | cd8446f3e8581a4401aa8f8354fb582eb6fd140d /pomu/patch/patch.py | |
parent | Ensure show works with portage (diff) | |
download | pomu-d172112aad6ca4ee589ba8a59bfd1d4212b34192.tar.gz pomu-d172112aad6ca4ee589ba8a59bfd1d4212b34192.tar.bz2 pomu-d172112aad6ca4ee589ba8a59bfd1d4212b34192.zip |
Diffstat (limited to 'pomu/patch/patch.py')
-rw-r--r-- | pomu/patch/patch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pomu/patch/patch.py b/pomu/patch/patch.py index ddc205b..7bb9cb8 100644 --- a/pomu/patch/patch.py +++ b/pomu/patch/patch.py @@ -35,7 +35,7 @@ def process_changes(_repo, single): res = {x: res[x] for x in res if res[x]} paths = {x: paths[x] for x in paths if res[x]} for _pkg, diffs in res.items(): # add each change as its own patch - cat, name, *_ = cpv_split(_pkg) + cat, name, _ = cpv_split(_pkg) patch_contents = '\n'.join(diffs) pkg = _repo.get_package(name, cat).expect() patch_name = '{}-user_changes.patch'.format(int(time())) @@ -88,7 +88,7 @@ def process_changes(_repo, single): if pkpref in res: res[pkpref].append(f) for _pkg, diffs in res.items(): # apply each newly added patch - cat, name, *_ = cpv_split(_pkg) + cat, name, _ = cpv_split(_pkg) pkg = _repo.get_package(name, cat).expect() for d in diffs: pkg.patch(d) |