[poky] [PATCH 1/1] distrodata.bbclass: Fix the postfix issue in check_new_ver function
Mei Lei
lei.mei at intel.com
Tue Feb 22 17:34:28 PST 2011
From: Mei Lei <lei.mei at intel.com>
Change the regular expression when checking upstream version, ignore postfix like "origin" in 3.2.2.orgin, "pre1" in 3.12-pre1, but keep the postfix lik
e"rc1" in 1.2rc1.
Signed-off-by: Mei Lei <lei.mei at intel.com>
---
meta/classes/distrodata.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass
index 049ebf9..831c7a2 100644
--- a/meta/classes/distrodata.bbclass
+++ b/meta/classes/distrodata.bbclass
@@ -434,7 +434,7 @@ python do_checkpkg() {
status = "ErrParseDir"
else:
"""newver still contains a full package name string"""
- status = re.search("(\d+[.\-_])*[0-9a-zA-Z]+", newver[1]).group()
+ status = re.search("(\d+[\.\-_])*(\d+[0-9a-zA-Z]*)", newver[1]).group()
elif not len(fhtml):
status = "ErrHostNoDir"
--
1.6.3.3
More information about the poky
mailing list