Commit 83d1ae94 authored by Max Rees's avatar Max Rees

Allow searching for dirty packages

parent 7eda19f7
......@@ -307,6 +307,9 @@ def build_search(query):
if not query.get("subpkgs"):
constraints.append("packages.origin IS NULL")
if query.get("dirty"):
constraints.append("packages.revision GLOB '*-dirty'")
if constraints:
sql = f"{sql} WHERE {' AND '.join(constraints)}"
......
......@@ -57,6 +57,7 @@
Show only packages with:
</div>
<div class="message-body">
{{ i_check("dirty", "dirty revisions") }}
{{ i_check("vers", "version spread") }}
{{ i_check("deps", "dependency spread") }}
{{ i_check("rdeps", "reverse dependency spread") }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment