From 635dbc154a7a3607162739d3e7d6bebb9f2f2822 Mon Sep 17 00:00:00 2001 From: Chulwoo Shin Date: Tue, 7 Mar 2017 16:44:10 +0900 Subject: [PATCH 1/1] [TIC-CORE] fix partitions info for default recipe fix partitions info for default recipe Change-Id: I3a3f77eb4631b2be198a4d17cd5a89b2e2a276e2 Signed-off-by: Chulwoo Shin --- tic/command.py | 8 -------- tic/parser/recipe_parser.py | 6 +++--- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/tic/command.py b/tic/command.py index 5ff9b2b..92f3c75 100644 --- a/tic/command.py +++ b/tic/command.py @@ -60,14 +60,6 @@ def analyze(repo_list, recipe_list=None): #Download repodata from repositories (Remote/Local) repoinfo = get_repodata_from_repos(repos, DEFAULT_CACHEDIR) logger.info('time to get repodata from repo: %d ms', misc.get_timestamp() - start_time) - -# checksum_list=[] -# for repo in repoinfo: -# checksum_list.append(repo['checksum']); -# all_checksum='_'.join(checksum_list); -# analysis_file=os.path.join(DEFAULT_ANALYSIS_CACHEDIR, all_checksum, 'analysis.json') -# if os.path.exists(analysis_file): -# pass start_time = misc.get_timestamp() # Parse the xml files for the analysis of package (.rpm) diff --git a/tic/parser/recipe_parser.py b/tic/parser/recipe_parser.py index c506bbd..fa41136 100644 --- a/tic/parser/recipe_parser.py +++ b/tic/parser/recipe_parser.py @@ -84,9 +84,9 @@ def get_default_recipe(): ], Partitions=[ dict(Name='headless', - Contents='part / --size=2000 --ondisk mmcblk0p --fstype=ext4 --label=rootfs --extoptions=\"-J size=16\" \ - part /opt/ --size=1000 --ondisk mmcblk0p --fstype=ext4 --label=system-data --extoptions="-m 0" \ - part /boot/kernel/mod_tizen_tm1/lib/modules --size=12 --ondisk mmcblk0p --fstype=ext4 --label=modules') + Contents='part / --size=2000 --ondisk mmcblk0p --fstype=ext4 --label=rootfs --extoptions=\"-J size=16\" \n\ +part /opt/ --size=1000 --ondisk mmcblk0p --fstype=ext4 --label=system-data --extoptions="-m 0" \n\ +part /boot/kernel/mod_tizen_tm1/lib/modules --size=12 --ondisk mmcblk0p --fstype=ext4 --label=modules \n') ] ) return recipe -- 2.7.4