]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tools/fetch-distro: switch to the target branch 33597/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Jul 2024 14:11:43 +0000 (16:11 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 22 Jul 2024 09:38:08 +0000 (11:38 +0200)
We switch opensuse from "factory" to "devel". I had an old checkout that was
using the stale branch.

tools/fetch-distro.py

index e7f9f59104eb648389475dd44478870881e23ebb..9fc5b1bfa62a377c1412b25d9101896ab91f3f6d 100755 (executable)
@@ -79,6 +79,10 @@ def update_distro(args, distro: str, config: dict):
     branch = config['Environment']['GIT_BRANCH']
     old_commit = config['Environment']['GIT_COMMIT']
 
+    cmd = ['git', '-C', f'pkg/{distro}', 'switch', branch]
+    print(f"+ {shlex.join(cmd)}")
+    subprocess.check_call(cmd)
+
     cmd = ['git', '-C', f'pkg/{distro}', 'fetch', 'origin', '-v',
            f'{branch}:remotes/origin/{branch}']
     print(f"+ {shlex.join(cmd)}")