summaryrefslogtreecommitdiff
path: root/parabola_repolint/linter_checks/dependencies.py
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-04-07 08:45:50 +0200
committerAndreas Grapentin <andreas@grapentin.org>2019-04-07 08:45:50 +0200
commite390c3b9e880f209511d805ea94aeb3e971d0ff7 (patch)
tree750db392b2e2681eaaceccfd37305cf8baa7cc84 /parabola_repolint/linter_checks/dependencies.py
parent6e0e6ca75c82a18f07f5d38188b6678a60d75780 (diff)
adding a fixer to the linter
Diffstat (limited to 'parabola_repolint/linter_checks/dependencies.py')
-rw-r--r--parabola_repolint/linter_checks/dependencies.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/parabola_repolint/linter_checks/dependencies.py b/parabola_repolint/linter_checks/dependencies.py
index 08b4871..0d261e0 100644
--- a/parabola_repolint/linter_checks/dependencies.py
+++ b/parabola_repolint/linter_checks/dependencies.py
@@ -89,6 +89,14 @@ class UnsatisfiableDepends(LinterCheckBase):
if missing:
raise LinterIssue('%s (%s)', pkgentry, ','.join(missing))
+ def fixhook_base(self, issue):
+ ''' produce a custom fixhook base '''
+ return '/'.join(str(issue[1]).split('/')[::2])
+
+ def fixhook_args(self, issue):
+ ''' produce custom fixhook arguments '''
+ return [ str(issue[1]).split('/')[1], *issue[2].split(',') ]
+
class UnsatisfiableMakedepends(LinterCheckBase):
'''