rsplit was introduced in python 2.4 and is like split but starts to
split from the right side. The only difference is obviously if you
have maxsplit set (which we don't). So it is fine to remove the 'r'
bb.fatal("This class assumed that WORKDIR is ${TMPDIR}/work... Not doing any check")
output = os.popen("%s -Byr %s" % (scanelf,file))
- txt = output.readline().rsplit()
+ txt = output.readline().split()
if bad_dir in txt:
package_qa_write_error( 1, name, file, d)
bb.error("QA Issue package %s contains bad RPATH %s in file %s" % (name, txt, file))