[TIC-CORE] Set the default installation packages 29/116629/1
authorChulwoo Shin <cw1.shin@samsung.com>
Mon, 27 Feb 2017 18:51:13 +0000 (03:51 +0900)
committerChulwoo Shin <cw1.shin@samsung.com>
Mon, 27 Feb 2017 18:51:13 +0000 (03:51 +0900)
- Set the default installation packages (building-blocks-root-Headless)

Change-Id: I912304ce7758156fcc5d3e8d7db4f03db8d8088e
Signed-off-by: Chulwoo Shin <cw1.shin@samsung.com>
tic/parser/recipe_parser.py
tic/utils/file.py

index b2f3876..ef5c6ff 100644 (file)
@@ -70,7 +70,7 @@ def get_default_recipe():
                 FileName= 'default',
                 Repos=['tizen-unified', 'tizen-base'],
                 Groups=[],
-                ExtraPackages= [],
+                ExtraPackages= ['building-blocks-root-Headless'],
                 RemovePackages=[]
             )
         ],
@@ -120,14 +120,14 @@ def convert_recipe_to_yaml(recipe, filepath):
     
     # configs.yaml
     with open(yamlinfo.configs, 'w') as outfile:
-        yaml.dump(config, outfile, default_flow_style=False)
+        yaml.safe_dump(config, outfile, default_flow_style=False)
 
     # repo.yaml
     if 'Repositories' in recipe:
         repos = {}
         repos['Repositories'] = recipe['Repositories']
         with open(yamlinfo.repos, 'w') as outfile:
-            yaml.dump(repos, outfile, default_flow_style=False)
+            yaml.safe_dump(repos, outfile, default_flow_style=False)
     
     # partition info
     if 'Partitions' in recipe:
index 06e6727..b1cf3ac 100644 (file)
@@ -50,4 +50,6 @@ def copyfile(src, dst, filename=None):
     if filename:
         abs_dst = os.path.join(abs_dst, filename)
     shutil.copy(src, abs_dst)
+    if filename:
+        return abs_dst
     return os.path.join(abs_dst, os.path.basename(src))
\ No newline at end of file