From: Yonghee Han Date: Mon, 25 Sep 2017 08:38:01 +0000 (+0900) Subject: TPE-365 Do not update source of _link packages X-Git-Tag: submit/trunk/20190927.012743~272^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F02%2F152202%2F1;p=services%2Fjenkins-scripts.git TPE-365 Do not update source of _link packages change the get_src_file_list_no_expand Change-Id: If7c03b970cf844a7896353724977556b2b0a3ec2 --- diff --git a/common/buildservice.py b/common/buildservice.py index 78f694b..8003df2 100644 --- a/common/buildservice.py +++ b/common/buildservice.py @@ -119,6 +119,12 @@ class BuildService(OSC): return core.meta_get_filelist(self.apiurl, project, package, expand=True, revision=revision) + def get_src_file_list_no_expand(self, project, package, revision=None): + """ get source file list of prj/pac + """ + return core.meta_get_filelist(self.apiurl, project, package, + expand=False, revision=revision) + def get_src_file_content(self, project, package, path, revision=None): """ Cat remote file """ diff --git a/job_repa.py b/job_repa.py index c9ca7bb..cefd655 100644 --- a/job_repa.py +++ b/job_repa.py @@ -50,12 +50,14 @@ class LocalError(Exception): def is_aggregate_package(build, proj, pack): if "_aggregate" in build.get_src_file_list(proj, pack): + print '%s package is a aggregate package' %(pack) return True return False def is_link_package(build, proj, pack): - if "_link" in build.get_src_file_list(proj, pack): + if "_link" in build.get_src_file_list_no_expand(proj, pack): + print '%s package is a link package' %(pack) return True return False