From 677178219c3c936efde55c7edb01046b263eca0f Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Fri, 5 Dec 2014 21:43:49 +0000 Subject: [PATCH] and we have a cool thing. --- roles/mirrorlist/files/mirrorlist_server.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/mirrorlist/files/mirrorlist_server.py b/roles/mirrorlist/files/mirrorlist_server.py index 118ff4c2fc..3f7ac5967b 100755 --- a/roles/mirrorlist/files/mirrorlist_server.py +++ b/roles/mirrorlist/files/mirrorlist_server.py @@ -482,7 +482,8 @@ def do_mirrorlist(kwargs): # Strip duplicate "//" from the path path = path.replace('//', '/') - header = "# path = %s " % (path) + subheader = "# path = %s " % (path) + header = subheader sdir = path.split('/') try: @@ -503,7 +504,8 @@ def do_mirrorlist(kwargs): kwargs['arch'] = u'source' repo = repo_redirect.get(kwargs['repo'], kwargs['repo']) arch = kwargs['arch'] - header = "# repo = %s arch = %s " % (repo, arch) + subheader = "# repo = %s arch = %s " % (repo, arch) + header = subheader if repo in disabled_repositories: return return_error(kwargs, message=header + 'repo disabled')