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:
committed by
Richard Purdie
parent
ea3cfbaf26
commit
218e441dd5
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user