summaryrefslogtreecommitdiff
path: root/classes/update-rc.d.bbclass
diff options
context:
space:
mode:
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)