summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 77b3b4a219..b9ac0e6951 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -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: