From 2b878c54097ee80de2546426e8a4b61a53b57389 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Oct 02 2019 14:56:26 +0000 Subject: whitespace: adjust indentations --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 43033da..d8d4f41 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -2393,9 +2393,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'], @@ -4304,17 +4304,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) @@ -6329,7 +6329,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': @@ -8514,10 +8514,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): @@ -9508,8 +9508,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') @@ -10060,8 +10060,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') @@ -11775,7 +11775,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) @@ -11802,7 +11802,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) @@ -12007,7 +12007,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