[oe-commits] org.oe.dev classes/insane.bbclass: Use split and make it work with python2.3 again

freyther commit openembedded-commits at lists.openembedded.org
Fri Mar 9 20:32:23 UTC 2007


classes/insane.bbclass: Use split and make it work with python2.3 again

    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'

Author: freyther at openembedded.org
Branch: org.openembedded.dev
Revision: a8bda210b9e6da106dbf0a8dbad274e5f6e1c2b6
ViewMTN: http://monotone.openembedded.org/revision.psp?id=a8bda210b9e6da106dbf0a8dbad274e5f6e1c2b6
Files:
1
classes/insane.bbclass
Diffs:

#
# mt diff -rcc41b5c73fe6e7b86bf9d57e9eacc0a32e449782 -ra8bda210b9e6da106dbf0a8dbad274e5f6e1c2b6
#
# 
# 
# patch "classes/insane.bbclass"
#  from [0f66342d2e9a7a01e9d844c0124738b171e84b28]
#    to [50af0477743c4c9b19401947d9d77cbbe1a8a749]
# 
============================================================
--- classes/insane.bbclass	0f66342d2e9a7a01e9d844c0124738b171e84b28
+++ classes/insane.bbclass	50af0477743c4c9b19401947d9d77cbbe1a8a749
@@ -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))






More information about the Openembedded-commits mailing list