summaryrefslogtreecommitdiffstats
path: root/src/commands
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-06-07 15:26:09 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-06-07 16:01:33 +0200
commitaf39b570d41b634d12f9e19a0e799dbb18557312 (patch)
treeea5e8e7afc07f92cbf74904875ce69aa5f3cee91 /src/commands
parentdd8c3cb7b59ba2bac1ebf83694a50e3ef210f7fd (diff)
Add flag to filter releases by package
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/db.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commands/db.rs b/src/commands/db.rs
index bf4337c..e984848 100644
--- a/src/commands/db.rs
+++ b/src/commands/db.rs
@@ -720,6 +720,10 @@ fn releases(conn_cfg: DbConnectionConfig<'_>, config: &Configuration, matches: &
query = query.filter(schema::release_stores::dsl::store_name.eq(store));
}
+ if let Some(pkg) = matches.value_of("package") {
+ query = query.filter(schema::packages::dsl::name.eq(pkg));
+ }
+
let data = query
.select({
let art = schema::artifacts::all_columns;