diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes-global/package.bbclass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass index 8f01bc4323..e8055a9cdc 100644 --- a/meta/classes-global/package.bbclass +++ b/meta/classes-global/package.bbclass | |||
@@ -496,6 +496,15 @@ python do_package () { | |||
496 | 496 | ||
497 | bb.build.exec_func("package_convert_pr_autoinc", d) | 497 | bb.build.exec_func("package_convert_pr_autoinc", d) |
498 | 498 | ||
499 | # Check for conflict between renamed packages and existing ones | ||
500 | # for each package in PACKAGES, check if it will be renamed to an existing one | ||
501 | for p in packages: | ||
502 | localdata = bb.data.createCopy(d) | ||
503 | localdata.setVar('OVERRIDES', p) | ||
504 | rename = localdata.getVar('PKG') | ||
505 | if (rename != None) and rename in packages: | ||
506 | bb.fatal('package "%s" is renamed to "%s" using PKG:%s, but package name already exists'%(p,rename,p)) | ||
507 | |||
499 | ########################################################################### | 508 | ########################################################################### |
500 | # Optimisations | 509 | # Optimisations |
501 | ########################################################################### | 510 | ########################################################################### |