summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/package_details.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/package_details.py b/plugins/package_details.py
index 2ae9f56..49a88ad 100644
--- a/plugins/package_details.py
+++ b/plugins/package_details.py
@@ -56,7 +56,19 @@ class ChangelogDetail (ScrolledDetail):
_widget_name_ = "Changelog"
def widget_init (self):
- self._view_ = HighlightView(lambda p: os.path.join(p.get_package_path(), "ChangeLog"), ["changelog"])
+ self._view_ = HighlightView(self.view_update, ["changelog"])
ScrolledDetail.widget_init(self)
+ def view_update (self, pkg):
+ return os.path.join(pkg.get_package_path(), "Changelog")
+
+class EbuildDetail (ScrolledDetail):
+ __description__ = "Shows the ebuild of a package"
+ _widget_name_ = "Ebuild"
+
+ def widget_init(self):
+ self._view_ = HighlightView(lambda p: p.get_ebuild_path(), ["gentoo", "sh"])
+ ScrolledDetail.widget_init(self)
+
+register(EbuildDetail)
register(ChangelogDetail)
2&follow=1'>Updating some depsRené 'Necoro' Neumann2-2/+7 2020-05-07Better detection if a text starts with html or notRené 'Necoro' Neumann2-4/+13 2020-05-07go fmtRené 'Necoro' Neumann1-3/+2 2020-05-07Add header X-Feed2Imap-GUIDRené 'Necoro' Neumann3-1/+7 2020-05-07update changelogRené 'Necoro' Neumann1-0/+1 2020-05-07FixRené 'Necoro' Neumann1-1/+1 2020-05-07Unified publishedDate and updatedDate into one (just as the old feed2imap...)René 'Necoro' Neumann5-21/+32 2020-05-06Print version during startupRené 'Necoro' Neumann1-1/+1 2020-05-06Improve templateRené 'Necoro' Neumann3-20/+28 2020-05-05Fix pipelineRené 'Necoro' Neumann1-2/+5 2020-05-05Make changelog a part of the release pipeline (untested)René 'Necoro' Neumann2-0/+12