summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRonan Le Martret <ronan@fridu.net>2014-02-06 15:24:09 +0100
committerRonan Le Martret <ronan@fridu.net>2014-02-06 15:24:09 +0100
commitc5b395f58fcbc9ecea77f02cfb13e1c1f5648eb6 (patch)
tree8ea62194a6dc0328b67f4f77e8d20a757d858280 /tools
parent26ee91cd2ce0062666118db2f8c7230b22ed5a59 (diff)
downloadtizen-c5b395f58fcbc9ecea77f02cfb13e1c1f5648eb6.tar.gz
tizen-c5b395f58fcbc9ecea77f02cfb13e1c1f5648eb6.tar.bz2
tizen-c5b395f58fcbc9ecea77f02cfb13e1c1f5648eb6.zip
Remove old file.
Change-Id: I9e51978ca4b8b168d9f7570190d51273005fe7a6
Diffstat (limited to 'tools')
-rwxr-xr-xtools/spec2yocto.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/spec2yocto.py b/tools/spec2yocto.py
index ebcbf45dd..4411dbb25 100755
--- a/tools/spec2yocto.py
+++ b/tools/spec2yocto.py
@@ -27,7 +27,7 @@ import errno
RECIPES_SOURCE_DIR = os.path.dirname( os.path.realpath( __file__ ) )
RECIPES_DIR_DEST = os.path.join( RECIPES_SOURCE_DIR, "../meta-tizen-ivi" )
-GIT_COMMAND = "git://%s/%s;protocol=ssh;tag=%s"
+GIT_COMMAND = "git://%s/%s;protocol=ssh;tag=%s;nobranch=1"
import sys
import platform
@@ -174,7 +174,7 @@ class Spec2yoctoConfig( object ):
"""
return the list of the blacklisted native package.
"""
- blacklist_list = self.__get_list( project, "blacklist", [] )
+ blacklist_list = self.__get_list( project, "native_blacklist", [] )
res = []
for blacklist in blacklist_list:
res.extend( self.__get_list( blacklist, "list", [] ) )
@@ -2220,6 +2220,8 @@ class manifestCollection:
'''
self.__recipes_dir_dest = SPEC2YOCTO_CONFIG.get_recipes_sources_directory( self.__my_project )
+ self.__clean_old_bb_files(self.__recipes_dir_dest)
+
if self.__recipes_dir_dest is None:
msg = "In the project \"%s\" recipes_dir_sources is not define."
msg = msg % ( self.__my_project )
@@ -2237,6 +2239,13 @@ class manifestCollection:
self.__init_MetaSpec()
self.__init_depends()
+ def __clean_old_bb_files( self ,path):
+ for root, dirs, files in os.walk(path):
+ for a_file in files:
+ if a_file.endswith(".bb"):
+ os.unlink( os.path.join(path, root, a_file) )
+
+
def __set_oe_package_blacklist( self ):
'''
load oe_package_blacklist
@@ -2320,7 +2329,6 @@ def check_group_file( project ):
if group_uri.startswith( "http" ):
group_file_path = os.path.join( working_dir, "group/group.xml" )
-
group_xml = download_url( group_uri )
with open( group_file_path, "w" ) as group_file: