From b3a447acab8d06fd11ee7292219717f8ab99e441 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Oct 02 2019 14:56:08 +0000 Subject: whitespace: adjust indentations --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 9746301..cc4b534 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -2392,9 +2392,9 @@ def repo_init(tag, with_src=False, with_debuginfo=False, event=None): 'volume_name': archive['volume_name'], } srcdir = joinpath(koji.pathinfo.mavenbuild(buildinfo), - koji.pathinfo.mavenrepo(archive)) + koji.pathinfo.mavenrepo(archive)) destlink = joinpath(repodir, 'maven', - koji.pathinfo.mavenrepo(archive)) + koji.pathinfo.mavenrepo(archive)) dir_links.add((srcdir, destlink)) dest_parent = os.path.dirname(destlink) artifact_dirs.setdefault(dest_parent, set()).add((archive['group_id'], @@ -4299,17 +4299,17 @@ def list_archive_files(archive_id, queryOpts=None): maven_archive = get_maven_archive(archive_info['id'], strict=True) archive_info.update(maven_archive) file_path = joinpath(koji.pathinfo.mavenbuild(build_info), - koji.pathinfo.mavenfile(archive_info)) + koji.pathinfo.mavenfile(archive_info)) elif win_info: win_archive = get_win_archive(archive_info['id'], strict=True) archive_info.update(win_archive) file_path = joinpath(koji.pathinfo.winbuild(build_info), - koji.pathinfo.winfile(archive_info)) + koji.pathinfo.winfile(archive_info)) elif image_info: image_archive = get_image_archive(archive_info['id'], strict=True) archive_info.update(image_archive) file_path = joinpath(koji.pathinfo.imagebuild(build_info), - archive_info['filename']) + archive_info['filename']) else: return _applyQueryOpts([], queryOpts) @@ -6255,7 +6255,7 @@ def import_archive_internal(filepath, buildinfo, type, typeInfo, buildroot_id=No if not metadata_only: # move the file to it's final destination mavendir = joinpath(koji.pathinfo.mavenbuild(buildinfo), - koji.pathinfo.mavenrepo(typeInfo)) + koji.pathinfo.mavenrepo(typeInfo)) _import_archive_file(filepath, mavendir) _generate_maven_metadata(mavendir) elif type == 'win': @@ -8435,10 +8435,10 @@ def importImageInternal(task_id, build_id, imgdata): # multiarch livemedia spins can have log name conflicts, so we # add the arch to the path logdir = joinpath(koji.pathinfo.build(build_info), - 'data/logs/image', imgdata['arch']) + 'data/logs/image', imgdata['arch']) else: logdir = joinpath(koji.pathinfo.build(build_info), - 'data/logs/image') + 'data/logs/image') koji.ensuredir(logdir) final_path = joinpath(logdir, os.path.basename(logfile)) if os.path.exists(final_path): @@ -9399,8 +9399,8 @@ class RootExports(object): if filepath.startswith('/') or '../' in filepath: raise koji.GenericError('invalid filepath: %s' % filepath) srpm_path = joinpath(koji.pathinfo.work(), - koji.pathinfo.taskrelpath(taskID), - filepath) + koji.pathinfo.taskrelpath(taskID), + filepath) else: raise koji.GenericError('either buildID or taskID and filepath must be specified') @@ -9949,8 +9949,8 @@ class RootExports(object): if filepath.startswith('/') or '../' in filepath: raise koji.GenericError('invalid filepath: %s' % filepath) rpm_path = joinpath(koji.pathinfo.work(), - koji.pathinfo.taskrelpath(taskID), - filepath) + koji.pathinfo.taskrelpath(taskID), + filepath) else: raise koji.GenericError('either rpmID or taskID and filepath must be specified') @@ -11663,7 +11663,7 @@ class HostExports(object): for relpath in [rpm_results['srpm']] + rpm_results['rpms'] + \ rpm_results['logs']: src = joinpath(koji.pathinfo.task(rpm_results['task_id']), - relpath) + relpath) dest = joinpath(destdir, 'rpms', relpath) koji.ensuredir(os.path.dirname(dest)) safer_move(src, dest) @@ -11690,7 +11690,7 @@ class HostExports(object): for relpath in [rpm_results['srpm']] + rpm_results['rpms'] + \ rpm_results['logs']: filename = joinpath(koji.pathinfo.task(rpm_results['task_id']), - relpath) + relpath) dest = joinpath(destdir, 'rpms', relpath) koji.ensuredir(os.path.dirname(dest)) safer_move(filename, dest) @@ -11862,7 +11862,7 @@ class HostExports(object): # in the database because we regenerate it when creating tag repos. # So we special-case it here. destdir = joinpath(koji.pathinfo.mavenbuild(build_info), - relpath) + relpath) _import_archive_file(filepath, destdir) _generate_maven_metadata(destdir) continue