cc_command = "gcc"
cxx_command = "g++"
+git_ssh = False
+
if ini.has_option("general", "expire"):
tree_expire = ini.getint("general", "expire")
if len(cc_version) == 1:
cc_version = ["eq", cc_version[0]]
+if ini.has_option("general", "git_ssh"):
+ git_ssh = ini.getboolean("general", "git_ssh")
+
repo_url = ini.get("repo", "url")
repo_branch = "master"
mode = 0755,
))
+ # Git SSH
+ if git_ssh:
+ factory.addStep(FileDownload(
+ name = "dlgitclonekey",
+ mastersrc = "git-clone.key",
+ slavedest = "../git-clone.key",
+ mode = 0600,
+ ))
+
+ factory.addStep(ShellCommand(
+ name = "patchfeedsconf",
+ description = "Patching feeds.conf",
+ command="sed -e 's#https://#ssh://git@#g' feeds.conf.default > feeds.conf",
+ haltOnFailure = True
+ ))
+
# feed
factory.addStep(ShellCommand(
name = "updatefeeds",
description = "Updating feeds",
command=["./scripts/feeds", "update"],
- env = MakeEnv(tryccache=True),
+ env = MakeEnv(tryccache=True, overrides={'GIT_SSH_COMMAND': Interpolate("ssh -o IdentitiesOnly=yes -o IdentityFile=%(kw:cwd)s/git-clone.key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no", cwd=GetCwd)} if git_ssh else {}),
haltOnFailure = True
))
+ # Git SSH
+ if git_ssh:
+ factory.addStep(ShellCommand(
+ name = "rmfeedsconf",
+ description = "Removing feeds.conf",
+ command=["rm", "feeds.conf"],
+ haltOnFailure = True
+ ))
+
# feed
factory.addStep(ShellCommand(
name = "installfeeds",