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

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)

View File

@ -329,7 +329,7 @@ RECIPE_COMMENTS_pn-tinylogin = "merged into busybox"
RECIPE_STATUS_pn-spectrum-fw = "green" # need upgrade
DEPENDENCY_CHECK_pn-spectrum-fw = "not done"
RECIPE_LATEST_VERSION_pn-spectrum-fw = "1"
RECIPE_LATEST_VERSION_pn-spectrum-fw = "1.0"
RECIPE_INTEL_SECTION_pn-spectrum-fw = "base utils"
RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-spectrum-fw = "n/a"
RECIPE_LATEST_RELEASE_DATE_pn-spectrum-fw = "n/a"