Add exclude list for now, until insane can handle per-package exclusions
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1196 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
parent
6e6fdde69b
commit
539b0f853a
|
@ -51,11 +51,11 @@ def package_qa_check_devdbg(path, name,d):
|
|||
import bb, os
|
||||
if not "-dev" in name:
|
||||
if path[-3:] == ".so" and os.path.islink(path):
|
||||
bb.fatal("QA Issue: non dev package contains symlink .so: %s" % name)
|
||||
bb.fatal("QA Issue: non -dev package %s contains symlink .so: %s" % name)
|
||||
|
||||
if not "-dbg" in name:
|
||||
if '.debug' in path:
|
||||
bb.fatal("QA Issue: non debug package contains .debug directory: %s" % name)
|
||||
bb.fatal("QA Issue: non -dbg package contains .debug directory: %s" % name)
|
||||
|
||||
def package_qa_check_perm(path,name,d):
|
||||
"""
|
||||
|
@ -88,7 +88,7 @@ def package_qa_walk(path, funcs, package,d):
|
|||
for file in files:
|
||||
path = os.path.join(root,file)
|
||||
for func in funcs:
|
||||
func(path, package,d)
|
||||
func(path, package, d)
|
||||
|
||||
|
||||
def package_qa_check_rdepends(pkg, workdir, d):
|
||||
|
@ -134,11 +134,19 @@ python do_package_qa () {
|
|||
return
|
||||
|
||||
for package in packages.split():
|
||||
# Nasty hack for now until we can mark exclusions in the packages.
|
||||
# db has a unusual versioning scheme. Cannot fix this.
|
||||
# gcc contains symlinks to other packages. Cannot fix.
|
||||
# elfutils has symlinks to point to correct .so files. Cannot fix.
|
||||
# networkmanager needs to be split into app/lib packages. Can fix.
|
||||
if package in [ 'db', 'gcc', 'elfutils', 'networkmanager' ]:
|
||||
bb.note("Package: %s (skipped)" % package)
|
||||
continue
|
||||
|
||||
bb.note("Package: %s" % package)
|
||||
path = "%s/install/%s" % (workdir, package)
|
||||
package_qa_walk(path, [package_qa_check_rpath, package_qa_check_devdbg, package_qa_check_perm, package_qa_check_arch], package, d)
|
||||
package_qa_check_rdepends(package, workdir, d)
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue