Merge remote-tracking branch 'origin/API9' into tizen_6.5
[platform/core/csapi/tizenfx.git] / packaging / maketfm.py
index 3641785..c3c7402 100644 (file)
@@ -3,7 +3,8 @@ import xml.etree.ElementTree as ET
 
 scrpit_dir = os.path.dirname(os.path.abspath(__file__))
 spec_dir = os.path.join(scrpit_dir, "csapi-tizenfx.spec")
-tree = ET.parse("../pkg/Tizen.NET/Tizen.NET.nuspec")
+nuspec_file = os.path.join(scrpit_dir, "../pkg/Tizen.NET/Tizen.NET.nuspec")
+tree = ET.parse(nuspec_file)
 root = tree.getroot()
 
 tfm_list = []
@@ -13,10 +14,10 @@ for meta_child in root.iter():
             if depen_child.tag == "{http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd}dependencies":
                 for group in depen_child:
                     tfm = group.attrib["targetFramework"].lower()
-                    tfm = tfm.replace(".", "")
-                    tfm = tfm.replace("20", "2.0")
-                    if tfm.strip():
-                        tfm_list.append(tfm)
+                    if tfm.startswith("tizen"):
+                        tfm = tfm.replace(".", "")
+                        if tfm.strip():
+                            tfm_list.append(tfm)
 
 tfm_list = list(set(tfm_list))
 tfm_list.sort(reverse=True)