diff options
author | Chris Larson <clarson@kergoth.com> | 2009-08-26 03:58:03 -0700 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2009-08-26 03:58:03 -0700 |
commit | 482e70f47fed52f27c83cc41e6bdeeb8ad36c779 (patch) | |
tree | 391b271af4f9b1c4930792f74a358f4e7e5f8f3c /classes/package_ipk.bbclass | |
parent | 40cc71035c6149e0e36d9486ec9d6b7933619660 (diff) |
package_ipk.bbclass: don't choke on empty SRC_URI.
Signed-off-by: Chris Larson <clarson@kergoth.com>
Diffstat (limited to 'classes/package_ipk.bbclass')
-rw-r--r-- | classes/package_ipk.bbclass | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/classes/package_ipk.bbclass b/classes/package_ipk.bbclass index e3a7522619..e5561082fd 100644 --- a/classes/package_ipk.bbclass +++ b/classes/package_ipk.bbclass @@ -266,10 +266,9 @@ python do_package_ipk () { ctrlfile.write("Replaces: %s\n" % ", ".join(rreplaces)) if rconflicts: ctrlfile.write("Conflicts: %s\n" % ", ".join(rconflicts)) - src_uri = bb.data.getVar("SRC_URI", localdata, 1) - if src_uri: - src_uri = re.sub("\s+", " ", src_uri) - ctrlfile.write("Source: %s\n" % " ".join(src_uri.split())) + src_uri = bb.data.getVar("SRC_URI", localdata, 1) or d.getVar("FILE", True) + src_uri = re.sub("\s+", " ", src_uri) + ctrlfile.write("Source: %s\n" % " ".join(src_uri.split())) ctrlfile.close() for script in ["preinst", "postinst", "prerm", "postrm"]: |