diff options
author | Iikka Eklund <iikka.eklund@qt.io> | 2020-09-22 21:22:59 +0300 |
---|---|---|
committer | Iikka Eklund <iikka.eklund@qt.io> | 2020-09-24 10:41:28 +0000 |
commit | 5ee2daefa0d131d611e95f7a1e6151122bc1aefc (patch) | |
tree | c744ee0fc025c88cb979a1e50a8f8d3e498a6a59 /packaging-tools/sdkcomponent.py | |
parent | 23c2638cf557aaa581298b308879e4d3969eba71 (diff) |
Add support for custom actions scripts per archive in pkg configs
Support "archive_action" per archive in config files. The action
needs to point to existing script file that must be executable.
archive_action: content_cleaner.py, --arg1=abc --arg2=abc
A comma separates the script from arguments.
The '--input-dir, is mandatory option for the action script.
The rest of the options are passed as such to the action script.
A content_cleaner.py script is provided which can be used to clean
content from the extracted archive based on glob rules.
Change-Id: I90e57cdacb1e9140f2b31403c7ef0899b99bf023
Reviewed-by: Antti Kokko <antti.kokko@qt.io>
Diffstat (limited to 'packaging-tools/sdkcomponent.py')
-rw-r--r-- | packaging-tools/sdkcomponent.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packaging-tools/sdkcomponent.py b/packaging-tools/sdkcomponent.py index a3117be44..cda008ccd 100644 --- a/packaging-tools/sdkcomponent.py +++ b/packaging-tools/sdkcomponent.py @@ -41,6 +41,7 @@ class SdkComponent: """DownloadableArchive subclass contains all required info about data packages for one SDK component""" def __init__(self, archive, package_name, parent_target_install_base, archive_server_name, target_config, archive_location_resolver, key_value_substitution_list): self.archive_uri = bldinstallercommon.config_section_map(target_config, archive)['archive_uri'] + self.archive_action = bldinstallercommon.safe_config_key_fetch(target_config, archive, 'archive_action') self.extract_archive = bldinstallercommon.safe_config_key_fetch(target_config, archive, 'extract_archive') self.package_strip_dirs = bldinstallercommon.safe_config_key_fetch(target_config, archive, 'package_strip_dirs') self.package_finalize_items = bldinstallercommon.safe_config_key_fetch(target_config, archive, 'package_finalize_items') |