aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykyta Holubakha <hilobakho@gmail.com>2019-06-09 02:41:37 +0300
committerMykyta Holubakha <hilobakho@gmail.com>2019-06-09 02:41:37 +0300
commitff361ddeb5b97dcb912da2faa065ccee20607752 (patch)
tree80f385f56bd159a75718b2e38f95a4be937785a7 /pomu/package.py
parentMark handlers as static with to make pylint happy (diff)
downloadpomu-ff361ddeb5b97dcb912da2faa065ccee20607752.tar.gz
pomu-ff361ddeb5b97dcb912da2faa065ccee20607752.tar.bz2
pomu-ff361ddeb5b97dcb912da2faa065ccee20607752.zip
Some more minor fixes and improvements
Diffstat (limited to 'pomu/package.py')
-rw-r--r--pomu/package.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/pomu/package.py b/pomu/package.py
index 4b2ee5f..a5b984c 100644
--- a/pomu/package.py
+++ b/pomu/package.py
@@ -104,15 +104,15 @@ class Package():
for p in self.patches:
ps.parse(open(p, 'r'))
for patch in ps:
- if '.ebuild' in ps.target:
- ps.source = self.ebuild_path
- ps.target = self.ebuild_path
- elif '/files/' in ps.target:
- comps = ps.target.split('/')
+ if '.ebuild' in patch.target:
+ patch.source = self.ebuild_path
+ patch.target = self.ebuild_path
+ elif '/files/' in patch.target:
+ comps = patch.target.split('/')
comps = [self.category, self.name] + comps[comps.index('files'):]
- ps.target = '/'.join(comps)
- if not ps.source.split('/'[-2:] == ['dev', 'null']):
- ps.source = '/'.join(comps)
+ patch.target = '/'.join(comps)
+ if not patch.source.split('/'[-2:] == ['dev', 'null']):
+ patch.source = '/'.join(comps)
else:
pass