From d28d87936879f41bd2531bb472361606865e4b28 Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: Jul 10 2020 13:37:06 +0000 Subject: Adding a new line to package.cfg file to make a valid file Fixes https://pagure.io/releng/issue/8870 Signed-off-by: Mohan Boddu --- diff --git a/fedscm_admin/git.py b/fedscm_admin/git.py index 7913535..8c5f585 100644 --- a/fedscm_admin/git.py +++ b/fedscm_admin/git.py @@ -250,7 +250,7 @@ class GitRepo(object): # Add the file, commit the changes and push with open(os.path.join(self.clone_dir, 'package.cfg'), 'w') as pkg_cfg: pkg_cfg.write("[koji]\n") - pkg_cfg.write("targets = {0} {0}-playground".format(branch)) + pkg_cfg.write("targets = {0} {0}-playground\n".format(branch)) pkg_cfg.close() self.add(pkg_cfg.name) self.commit("Adding package.cfg file") diff --git a/fedscm_admin/pagure.py b/fedscm_admin/pagure.py index f0c5caf..b50a2f6 100644 --- a/fedscm_admin/pagure.py +++ b/fedscm_admin/pagure.py @@ -199,7 +199,7 @@ def new_project(namespace, repo, description, upstreamurl, payload = { 'namespace': namespace, 'name': repo, - 'description': description or 'The {0} package'.format(repo), + 'description': description or 'The {0} package\n'.format(repo) 'url': upstreamurl or '', 'wait': True }