Merge remote-tracking branch 'origin/master' into tizen
[platform/core/csapi/tizenfx.git] / packaging / maketfm.py
old mode 100644 (file)
new mode 100755 (executable)
index c3c7402..959d733
@@ -7,7 +7,8 @@ nuspec_file = os.path.join(scrpit_dir, "../pkg/Tizen.NET/Tizen.NET.nuspec")
 tree = ET.parse(nuspec_file)
 root = tree.getroot()
 
-tfm_list = []
+tfm_list1 = []
+tfm_list2 = []
 for meta_child in root.iter():
     if meta_child.tag == "{http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd}metadata":
         for depen_child in meta_child:
@@ -15,12 +16,16 @@ for meta_child in root.iter():
                 for group in depen_child:
                     tfm = group.attrib["targetFramework"].lower()
                     if tfm.startswith("tizen"):
-                        tfm = tfm.replace(".", "")
-                        if tfm.strip():
-                            tfm_list.append(tfm)
+                        if len(tfm) == 8:
+                            tfm_list1.append(tfm.replace(".", "").strip())
+                        else:
+                            tfm_list2.append(tfm.strip())
 
-tfm_list = list(set(tfm_list))
-tfm_list.sort(reverse=True)
+tfm_list1 = list(set(tfm_list1))
+tfm_list1.sort(reverse=True)
+tfm_list2 = list(set(tfm_list2))
+tfm_list2.sort(reverse=True)
+tfm_list = tfm_list2 + tfm_list1
 
 f = open(spec_dir,'r')
 origin_data = f.read()