summaryrefslogtreecommitdiff
path: root/parabola_repolint/linter_checks/dependencies.py
diff options
context:
space:
mode:
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):
'''