pakcage.bbclass:use a better way to cut -dev/-dbg suffix
PATCH 1/1 pakcage.bbclass:use a better way to cut -dev/-dbg suffix
From: "Song.Li" <[email protected]>
In pakcage.bbclass,function replace('-dev', '') is used to cut '-dev' suffix. but it will cause the name "lib32-device-dev" to "lib32ice",
so change it to [:-4].
Signed-off-by Song.Li <[email protected]>
--- meta/classes/package.bbclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
meta/classes/package.bbclass +4 -4
@@ -1634,9 +1634,9 @@ python package_depchains() { #bb.note("Skipping %s" % depend) continue if depend.endswith('-dev'): - depend = depend.replace('-dev', '') + depend = depend[:-4] if depend.endswith('-dbg'): - depend = depend.replace('-dbg', '') + depend = depend[:-4] pkgname = getname(depend, suffix) #bb.note("Adding %s for %s" % (pkgname, depend)) if pkgname not in rreclist and pkgname != pkg:
@@ -1655,9 +1655,9 @@ python package_depchains() { #bb.note("Skipping %s" % depend) continue if depend.endswith('-dev'): - depend = depend.replace('-dev', '') + depend = depend[:-4] if depend.endswith('-dbg'): - depend = depend.replace('-dbg', '') + depend = depend[:-4] pkgname = getname(depend, suffix) #bb.note("Adding %s for %s" % (pkgname, depend)) if pkgname not in rreclist and pkgname != pkg:
Signature · 1 line
1.7.9.5