From b5976d1ae92184f1f1f9ee1c7f69916d5e624883 Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: Jul 19 2019 21:41:03 +0000 Subject: Create package.cfg only for epel > 7 Signed-off-by: Mohan Boddu --- diff --git a/fedscm_admin/utils.py b/fedscm_admin/utils.py index 56c1fdd..9459c30 100644 --- a/fedscm_admin/utils.py +++ b/fedscm_admin/utils.py @@ -782,10 +782,10 @@ def new_git_branch(namespace, repo, branch, use_master=False): fedscm_admin.pagure.new_branch( namespace, repo, branch, from_commit=git_obj.first_commit) # If epel\d branch, then create package.cfg file in that branch - # Remove the check for epel version >= 7 when playground is enabled + # Remove the check for epel version > 7 when playground is enabled # for epel7 if (bool(re.match(r'^(?:epel)\d+$', branch)) and - int(''.join([i for i in branch if re.match(r'\d', i)])) >= 7): + int(''.join([i for i in branch if re.match(r'\d', i)])) > 7): git_obj.create_epel_package_cfg(namespace, repo, branch) diff --git a/setup.py b/setup.py index 383fd93..a0fc11f 100644 --- a/setup.py +++ b/setup.py @@ -20,5 +20,5 @@ setup( packages=['fedscm_admin'], package_dir={'fedscm_admin': 'fedscm_admin'}, url='https://pagure.io/fedscm_admin', - version='1.0.8', + version='1.0.9', )