package_ipk.bbclass: Fix SRC_URI whitespace handling
authorMark Hatle <mark.hatle@windriver.com>
Mon, 6 Oct 2014 14:05:08 +0000 (09:05 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Oct 2014 15:03:13 +0000 (16:03 +0100)
commitaf6a68b69b25d69f5f4b5293ffad8c798ea02326
treef715217c54e0442d91606b2d12873ac86a27ccd6
parent7afa5ba573ba0f7886bcb21797fe0a714171251d
package_ipk.bbclass: Fix SRC_URI whitespace handling

The SRC_URI may contain whitespace, but be otherwise empty.  This can happen
in the case:

MYSRC = ""
MYSRC_arm = "file://myarm.patch"
SRC_URI += "${MYSRC}"

Unless we strip blank spaces, to determine if it is empty, we can end up
generating a "Source: " line which in invalid.  This leads to the error:

  invalid Source: field is speified in the generated CONTROL file

(From OE-Core rev: 16cedc3bce6fc37543e9ef053cd7c589e523ca1c)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_ipk.bbclass