Patchwork [1/1] distrodata.bbclass:Fix some recipes upstream version check issue.

login
register
mail settings
Submitter Mei Lei
Date Dec. 6, 2011, 9:09 a.m.
Message ID <2fba54d2f6ada2272efaf8cd50b137bb7d2eaf26.1323162150.git.lei.mei@intel.com>
Download mbox | patch
Permalink /patch/16247/
State Accepted
Commit 7f38cbef365c05d75563760f15b10284147c2de3
Headers show

Comments

Mei Lei - Dec. 6, 2011, 9:09 a.m.
Some recipes,like rt-tests,clutter-box2d,iproute2,didn't declare upstream protocal, but in distrodata.bbclass, we use rsync as the default protocal,
this will lead an error when checking upstream version.
Change default protocal from rsync to git in distrodata.bbclass.

Signed-off-by: Mei Lei <lei.mei@intel.com>
---
 meta/classes/distrodata.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass
index 0c0b549..ff5b836 100644
--- a/meta/classes/distrodata.bbclass
+++ b/meta/classes/distrodata.bbclass
@@ -562,7 +562,7 @@  python do_checkpkg() {
 		if 'protocol' in parm:
 			gitproto = parm['protocol']
 		else:
-			gitproto = "rsync"
+			gitproto = "git"
 		gitcmd = "git ls-remote %s://%s%s%s *tag* 2>&1" % (gitproto, gituser, host, path)
 		gitcmd2 = "git ls-remote %s://%s%s%s HEAD 2>&1" % (gitproto, gituser, host, path)
 		tmp = os.popen(gitcmd).read()