diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-02-05 06:14:30 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-02-05 06:18:23 +0100 |
commit | c321e4e027f0d071033831c1eb09e068a05bd5e6 (patch) | |
tree | b0cb017859c3b4fb1b77eafd6b61d08dda576274 /www-apps/prewikka/files | |
parent | app-editors/gvim: version bump to 8.2.0210 (diff) | |
download | gentoo-c321e4e027f0d071033831c1eb09e068a05bd5e6.tar.gz gentoo-c321e4e027f0d071033831c1eb09e068a05bd5e6.tar.bz2 gentoo-c321e4e027f0d071033831c1eb09e068a05bd5e6.zip |
www-apps/prewikka: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'www-apps/prewikka/files')
-rw-r--r-- | www-apps/prewikka/files/prewikka-4.1.5-fix_rule_error.patch | 32 | ||||
-rw-r--r-- | www-apps/prewikka/files/prewikka-4.1.5-fix_siteconfig.patch | 12 |
2 files changed, 0 insertions, 44 deletions
diff --git a/www-apps/prewikka/files/prewikka-4.1.5-fix_rule_error.patch b/www-apps/prewikka/files/prewikka-4.1.5-fix_rule_error.patch deleted file mode 100644 index 64fd92f14ef8..000000000000 --- a/www-apps/prewikka/files/prewikka-4.1.5-fix_rule_error.patch +++ /dev/null @@ -1,32 +0,0 @@ -# Based on https://www.prelude-siem.org/projects/prewikka/repository/revisions/9814f708b6e157795b89f9edda32ab38d0a2ced7/diff/prewikka/view.py -# Already commited - ---- a/prewikka/view.py -+++ b/prewikka/view.py -@@ -523,7 +523,7 @@ - - try: - rule, view_kwargs = env.request.url_adapter.match(request.path, method=request.method, return_rule=True) -- view = self._views_rules[rule] -+ view = self._views_rules[rule.rule+rule.endpoint] - - except werkzeug.exceptions.MethodNotAllowed: - raise InvalidMethodError(N_("Method '%(method)s' is not allowed for view '%(view)s'", -@@ -580,7 +580,7 @@ - - rule = Rule(path, endpoint=v.view_endpoint, methods=methods, defaults=defaults) - -- self._views_rules[rule] = v -+ self._views_rules[rule.rule+rule.endpoint] = v - self._rule_map.add(rule) - - def addView(self, view): -@@ -601,7 +601,7 @@ - - rule = Rule((view.view_path or "/" + view.view_id), endpoint=view.view_endpoint) - -- self._views_rules[rule] = view -+ self._views_rules[rule.rule+rule.endpoint] = view - self._rule_map.add(rule) - self._views[view.view_id] = view - diff --git a/www-apps/prewikka/files/prewikka-4.1.5-fix_siteconfig.patch b/www-apps/prewikka/files/prewikka-4.1.5-fix_siteconfig.patch deleted file mode 100644 index 773b2e984698..000000000000 --- a/www-apps/prewikka/files/prewikka-4.1.5-fix_siteconfig.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/setup.py -+++ b/setup.py -@@ -84,7 +84,8 @@ - - def init_siteconfig(self): - config = open("prewikka/siteconfig.py", "w") -- config.write("tmp_dir = '%s'\n" % (os.path.join(tempfile.gettempdir(), "prewikka"))) -+ config.write("import os, tempfile\n") -+ config.write("tmp_dir = os.path.join(tempfile.gettempdir(), 'prewikka')\n") - config.write("conf_dir = '%s'\n" % (os.path.abspath(self.conf_prefix))) - config.write("data_dir = '%s'\n" % (os.path.abspath(self.data_prefix))) - config.write("libprelude_required_version = '%s'\n" % (LIBPRELUDE_REQUIRED_VERSION)) |