diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-02 03:10:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-02 04:59:16 +0300 |
commit | bab9de2a52929fe2b45ecddb1eb09da3378e303b (patch) | |
tree | cde61c5cb86dfad1c90aa414a8c7b1711ec25782 /build_files/buildbot/worker_pack.py | |
parent | 28ebe827e60c84ed4731a9f8aa701ccf2d8be0b0 (diff) |
Cleanup: pep8, blank lines
Diffstat (limited to 'build_files/buildbot/worker_pack.py')
-rw-r--r-- | build_files/buildbot/worker_pack.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build_files/buildbot/worker_pack.py b/build_files/buildbot/worker_pack.py index 96c8db8e6c8..82b406cd42d 100644 --- a/build_files/buildbot/worker_pack.py +++ b/build_files/buildbot/worker_pack.py @@ -29,6 +29,7 @@ from pathlib import Path import buildbot_utils + def get_package_name(builder, platform=None): info = buildbot_utils.VersionInfo(builder) @@ -41,6 +42,7 @@ def get_package_name(builder, platform=None): return package_name + def sign_file_or_directory(path): from codesign.simple_code_signer import SimpleCodeSigner code_signer = SimpleCodeSigner() @@ -64,6 +66,7 @@ def create_buildbot_upload_zip(builder, package_files): sys.stderr.write('Create buildbot_upload.zip failed: ' + str(ex) + '\n') sys.exit(1) + def create_tar_xz(src, dest, package_name): # One extra to remove leading os.sep when cleaning root for package_root ln = len(src) + 1 @@ -91,6 +94,7 @@ def create_tar_xz(src, dest, package_name): package.add(entry[0], entry[1], recursive=False, filter=_fakeroot) package.close() + def cleanup_files(dirpath, extension): for f in os.listdir(dirpath): filepath = os.path.join(dirpath, f) |