diff options
author | Junghyun Kim <jh0822.kim@samsung.com> | 2017-04-04 08:59:20 +0900 |
---|---|---|
committer | Junghyun Kim <jh0822.kim@samsung.com> | 2017-04-04 11:24:40 +0900 |
commit | ce6fc3d54bf617e4c408dcb59f5bd6110ddf0aa6 (patch) | |
tree | 7094e9915ff98d70662458f2c8765c1e6b4bc699 | |
parent | bafbdd9120f169e5297e39ab663c8c5ae81e1c27 (diff) | |
download | repa-ce6fc3d54bf617e4c408dcb59f5bd6110ddf0aa6.tar.gz repa-ce6fc3d54bf617e4c408dcb59f5bd6110ddf0aa6.tar.bz2 repa-ce6fc3d54bf617e4c408dcb59f5bd6110ddf0aa6.zip |
Do not update source of _link packages even if an SR is accepted.
Not updating _aggregate packages is applied in the previous commit.
A request from Tizen release team is received that _link packages
should not be updated as well.
Change-Id: I33674033979f1201bb9b7235fe3cdc1641a4fcaf
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
-rw-r--r-- | repa/common.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/repa/common.py b/repa/common.py index 9d22cca..e4b743b 100644 --- a/repa/common.py +++ b/repa/common.py @@ -88,10 +88,13 @@ def delete_project(obs, name, target): obs.delete_project(project) def is_aggregate_package(obs, proj, pack): - if re.search("aggregate", pack): - if "_aggregate" in obs.get_file_list(proj, pack): - return True + if "_aggregate" in obs.get_file_list(proj, pack): + return True + return False +def is_link_package(obs, proj, pack): + if "_link" in obs.get_file_list(proj, pack): + return True return False def accept_or_reject(obs, submission, state, target, comment='', @@ -132,7 +135,7 @@ def accept_or_reject(obs, submission, state, target, comment='', org_source_packages=obs.get_source_packages(project) source_packages=[] for p in org_source_packages: - if not is_aggregate_package(obs, project, p): + if not is_aggregate_package(obs, project, p) and not is_link_package(obs, project, p): source_packages.append(p) reqid = obs.create_sr(project, source_packages, |