summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/repo.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch/repo.py')
-rw-r--r--bitbake/lib/bb/fetch/repo.py23
1 files changed, 5 insertions, 18 deletions
diff --git a/bitbake/lib/bb/fetch/repo.py b/bitbake/lib/bb/fetch/repo.py
index bafdb2a179..e5132a14fe 100644
--- a/bitbake/lib/bb/fetch/repo.py
+++ b/bitbake/lib/bb/fetch/repo.py
@@ -45,24 +45,11 @@ class Repo(Fetch):
45 "master". 45 "master".
46 """ 46 """
47 47
48 if "protocol" in ud.parm: 48 ud.proto = ud.parm.get('protocol', 'git')
49 ud.proto = ud.parm["protocol"] 49 ud.branch = ud.parm.get('branch', 'master')
50 else: 50 ud.manifest = ud.parm.get('manifest', 'default.xml')
51 ud.proto = "git" 51 if not ud.manifest.endswith('.xml'):
52 52 ud.manifest += '.xml'
53 if "branch" in ud.parm:
54 ud.branch = ud.parm["branch"]
55 else:
56 ud.branch = "master"
57
58 if "manifest" in ud.parm:
59 manifest = ud.parm["manifest"]
60 if manifest.endswith(".xml"):
61 ud.manifest = manifest
62 else:
63 ud.manifest = manifest + ".xml"
64 else:
65 ud.manifest = "default.xml"
66 53
67 ud.localfile = data.expand("repo_%s%s_%s_%s.tar.gz" % (ud.host, ud.path.replace("/", "."), ud.manifest, ud.branch), d) 54 ud.localfile = data.expand("repo_%s%s_%s_%s.tar.gz" % (ud.host, ud.path.replace("/", "."), ud.manifest, ud.branch), d)
68 55