summaryrefslogtreecommitdiff
path: root/classes/update-rc.d.bbclass
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2005-06-27 20:27:02 +0000
committerPhil Blundell <philb@gnu.org>2005-06-27 20:27:02 +0000
commitda5d82591ce9aa123161b84e9b2189ab5b032c7d (patch)
tree11a09d0256d62597b74305ab80889eaf2c01ecd0 /classes/update-rc.d.bbclass
parentd32fb461bd0660905bc479b7c8a93cfbc131620b (diff)
avoid crash when PACKAGES is empty
BKrev: 42c06116btgOA5Mtq_TVBmuq5daBcg
Diffstat (limited to 'classes/update-rc.d.bbclass')
-rw-r--r--classes/update-rc.d.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/update-rc.d.bbclass b/classes/update-rc.d.bbclass
index a41dd7850c..ffa5d49a81 100644
--- a/classes/update-rc.d.bbclass
+++ b/classes/update-rc.d.bbclass
@@ -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)