diff options
-rw-r--r-- | meta/classes/package.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 993ce98782..8a94e30aed 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -116,6 +116,13 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst | |||
116 | 116 | ||
117 | """ | 117 | """ |
118 | 118 | ||
119 | dvar = d.getVar('PKGD', True) | ||
120 | |||
121 | # If the root directory doesn't exist, don't error out later but silently do | ||
122 | # no splitting. | ||
123 | if not os.path.exists(dvar + root): | ||
124 | return | ||
125 | |||
119 | ml = d.getVar("MLPREFIX", True) | 126 | ml = d.getVar("MLPREFIX", True) |
120 | if ml: | 127 | if ml: |
121 | if not output_pattern.startswith(ml): | 128 | if not output_pattern.startswith(ml): |
@@ -130,7 +137,6 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst | |||
130 | if newdeps: | 137 | if newdeps: |
131 | extra_depends = " ".join(newdeps) | 138 | extra_depends = " ".join(newdeps) |
132 | 139 | ||
133 | dvar = d.getVar('PKGD', True) | ||
134 | 140 | ||
135 | packages = d.getVar('PACKAGES', True).split() | 141 | packages = d.getVar('PACKAGES', True).split() |
136 | 142 | ||