avoid crash when PACKAGES is empty
authorPhil Blundell <philb@gnu.org>
Mon, 27 Jun 2005 20:27:02 +0000 (20:27 +0000)
committerPhil Blundell <philb@gnu.org>
Mon, 27 Jun 2005 20:27:02 +0000 (20:27 +0000)
BKrev: 42c06116btgOA5Mtq_TVBmuq5daBcg

classes/update-rc.d.bbclass

index a41dd78..ffa5d49 100644 (file)
@@ -54,7 +54,7 @@ python populate_packages_prepend () {
        if pkgs == None:
                pkgs = bb.data.getVar('PN', d, 1)
                packages = (bb.data.getVar('PACKAGES', d, 1) or "").split()
-               if not pkgs in packages:
+               if not pkgs in packages and packages != []:
                        pkgs = packages[0]
        for pkg in pkgs.split():
                update_rcd_package(pkg)