TPE-365 Do not update source of _link packages 02/152202/1
authorYonghee Han <onstudy@samsung.com>
Mon, 25 Sep 2017 08:38:01 +0000 (17:38 +0900)
committerYonghee Han <onstudy@samsung.com>
Mon, 25 Sep 2017 08:38:01 +0000 (17:38 +0900)
change the get_src_file_list_no_expand

Change-Id: If7c03b970cf844a7896353724977556b2b0a3ec2

common/buildservice.py
job_repa.py

index 78f694b..8003df2 100644 (file)
@@ -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
         """
index c9ca7bb..cefd655 100644 (file)
@@ -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