summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-04-29 15:06:04 +0200
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-04-29 15:06:04 +0200
commitd0fbe12647c4bd575155ade79391e7c13824b146 (patch)
tree3981baaca21026a08134d4247545c8c8abd197cf /tools
parent15d872587cfb4ca838c180a80a983daaea72ce8c (diff)
downloadtizen-d0fbe12647c4bd575155ade79391e7c13824b146.tar.gz
tizen-d0fbe12647c4bd575155ade79391e7c13824b146.tar.bz2
tizen-d0fbe12647c4bd575155ade79391e7c13824b146.zip
Replace "-devel" occurences with "-dev"
Some "-devel" extensions could be found in generated recipes. Yocto uses "-dev" extensions instead of "-devel". This patch attempts to replace the remainings "-devel" extensions. Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/spec2yocto.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/spec2yocto.py b/tools/spec2yocto.py
index 6ef97f579..95da15a05 100755
--- a/tools/spec2yocto.py
+++ b/tools/spec2yocto.py
@@ -1631,17 +1631,21 @@ class MetaSpec:
if pkg_f.startswith( _license ):
pass
else:
- file_d.write( "%s_files += \"%s\"\n" % ( package, pkg_f ) )
+ pkg_yocto_name = package.replace("-devel","-dev")
+ file_d.write( "%s_files += \"%s\"\n" % ( pkg_yocto_name, pkg_f ) )
file_d.write( "\n" )
for package in self.__packages_dico.keys():
p_parse = package.replace( package_name, "${PN}" )
- file_d.write( "FILES_%s = \"${%s_files}\"\n" % ( p_parse, package ) )
+ p_parse = p_parse.replace("-devel","-dev")
+ pkg_yocto_name = package.replace("-devel","-dev")
+ file_d.write( "FILES_%s = \"${%s_files}\"\n" % ( p_parse, pkg_yocto_name ) )
file_d.write( "\n" )
for package in self.__packages_dico.keys():
- file_d.write( "PKG_%s= \"%s\"\n" % (package,package) )
+ pkg_yocto_name = package.replace("-devel","-dev")
+ file_d.write( "PKG_%s= \"%s\"\n" % (pkg_yocto_name,pkg_yocto_name) )
file_d.write( "\n" )
def __create_patch( self ,file_d):