From 218e441dd5b6f45e76464d75e2d06c439347f754 Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Mon, 26 Jul 2010 15:05:40 +0800 Subject: utility-tasks.bbclass: miscellaneous fix Fix parse error with packages such as spectrum-fw whose name has no version string. Later we may have per-recipe option to disable automatic check for those known with troubles, to reduce complexity in this part. Signed-off-by Kevin Tian --- meta/classes/utility-tasks.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/classes') diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass index a4db4f8be..20b50ab8d 100644 --- a/meta/classes/utility-tasks.bbclass +++ b/meta/classes/utility-tasks.bbclass @@ -217,6 +217,9 @@ python do_checkpkg() { Return new version if success, or else error in "Errxxxx" style """ def check_new_version(url, curname, d): + """possible to have no version in pkg name, such as spectrum-fw""" + if not re.search("\d+", curname): + return pcurver pn = bb.data.getVar('PN', d, 1) f = tempfile.NamedTemporaryFile(delete=False, prefix="%s-2-" % pn) status = internal_fetch_wget(url, d, f) -- cgit v1.2.3