1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

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 <kevin.tian@intel.com>
This commit is contained in:
Kevin Tian
2010-07-26 15:05:40 +08:00
committed by Richard Purdie
parent ea3cfbaf26
commit 218e441dd5
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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)