From ddce747aae3b065fba5d5e1922a62a7315a2b1bd Mon Sep 17 00:00:00 2001 From: Otto Liljalaakso Date: Jan 07 2023 14:16:47 +0000 Subject: Set default_branch_merge to 'rawhide' In Fedora, the principle is to perform all modifications in Rawhide first. Thus, it makes sense to assume that any work that happens outside of an established dist-git repository is targeting Rawhide. Previously, the user had to manually specify '--release rawhide' on every invocation. Define default_branch_merge() to return 'rawhide', so that 'rawhide' is the default release when there is no Git repository. Signed-off-by: Otto Liljalaakso --- diff --git a/fedpkg/__init__.py b/fedpkg/__init__.py index 1599209..9973286 100644 --- a/fedpkg/__init__.py +++ b/fedpkg/__init__.py @@ -175,6 +175,9 @@ class Commands(pyrpkg.Commands): else: super(Commands, self).load_container_build_target() + def default_branch_merge(self): + return "rawhide" + def _tag2version(self, dest_tag): """ get the '26' part of 'f26-foo' string """ return dest_tag.split('-')[0].replace('f', '')