classes/insane.bbclass: Use split and make it work with python2.3 again
authorHolger Freyther <zecke@selfish.org>
Fri, 9 Mar 2007 20:29:00 +0000 (20:29 +0000)
committerHolger Freyther <zecke@selfish.org>
Fri, 9 Mar 2007 20:29:00 +0000 (20:29 +0000)
    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'

classes/insane.bbclass

index a3ca21d..40f6151 100644 (file)
@@ -206,7 +206,7 @@ def package_qa_check_rpath(file,name,d):
         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))