From 59a54504c68aa93909bb9c5d4da452acc3e18bec Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 31 2021 10:01:51 +0000 Subject: When query PDC for flatpaks fix the branch that is looked up While the rpms and the container namespaces use `rawhide` for default branch, the flatpaks namespace uses `stable` and the `tests` namespace uses `master`. Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure_distgit/plugin.py b/pagure_distgit/plugin.py index 1f5f0fa..87f1018 100644 --- a/pagure_distgit/plugin.py +++ b/pagure_distgit/plugin.py @@ -155,6 +155,8 @@ def _is_active_in_pdc(name, namespace): branch = "master" if namespace in ["rpms", "container"]: branch = "rawhide" + elif namespace == "flatpaks": + branch = "stable" url = "%s?global_component=%s&name=%s&type=%s" % ( pdc_url,