phase1: remove unused 'git_ssh'
authorThibaut VARÈNE <hacks@slashdirt.org>
Wed, 19 Oct 2022 14:35:44 +0000 (16:35 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 15 May 2023 15:36:01 +0000 (17:36 +0200)
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
phase1/config.ini.example
phase1/master.cfg

index ceeace40fb554304b121e42b23104383819acba6..1f500df1d31d1ee522360a211f77d619b4415dab 100644 (file)
@@ -10,13 +10,6 @@ status_user = example
 status_password = example
 expire = 1209600
 port = 9989
-git_ssh = true
-git_ssh_key = -----BEGIN RSA PRIVATE KEY-----
-       MIIEpAIBAAKCAQEAuCJwo6OmrRDxcGfsMgBhq0vdzp2ZIdqnedFH8u6tVYLt9WDU
-       ...
-       mHzkh8Uv4OAWTjiLGycbXa0/31hu9PCeNzYmjjrp8tcGjsiJJFxydgS+wc0i2UPV
-       nSI+JbmAAF9vw6gj2i+Hqx7UloRd0tEv/leX354T5lO06LMiNhvN9g==
-       -----END RSA PRIVATE KEY-----
 config_seed = # Seed configuration
        CONFIG_BUILDBOT=y
        CONFIG_DEVEL=y
index 0c836d7fe9cce3ceb678494284543d8eeaff61db..d61fc91dc2a8c1d70d9d9661e44fab14961e1726 100644 (file)
@@ -220,20 +220,9 @@ cxx_command = "g++"
 
 config_seed = ""
 
-git_ssh = False
-git_ssh_key = None
-
 if ini.has_option("phase1", "expire"):
        tree_expire = ini.getint("phase1", "expire")
 
-if ini.has_option("general", "git_ssh"):
-       git_ssh = ini.getboolean("general", "git_ssh")
-
-if ini.has_option("general", "git_ssh_key"):
-       git_ssh_key = ini.get("general", "git_ssh_key")
-else:
-       git_ssh = False
-
 if ini.has_option("phase1", "config_seed"):
        config_seed = ini.get("phase1", "config_seed")
 
@@ -879,41 +868,16 @@ for target in targets:
                mode = 0o755,
        ))
 
-       # Git SSH
-       if git_ssh:
-               factory.addStep(StringDownload(
-                       name = "dlgitclonekey",
-                       s = git_ssh_key,
-                       workerdest = "../git-clone.key",
-                       mode = 0o600,
-               ))
-
-               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, 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 {}),
+               env = MakeEnv(tryccache=True),
                haltOnFailure = True,
                locks = NetLockDl,
        ))
 
-       # 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",