#9232 Mass rebuild: Make sure we're on the master branch no matter the default
Merged 4 years ago by cverna. Opened 4 years ago by churchyard.
churchyard/releng mass_rebuild_only_master  into  master

file modified
+1 -1
@@ -112,7 +112,7 @@ 

          continue

  

      # Check out git

-     fedpkgcmd = ['fedpkg', '--user', 'releng', 'clone', name]

+     fedpkgcmd = ['fedpkg', '--user', 'releng', 'clone', '--branch', 'master', name]

      print('Checking out %s' % name)

      if runme(fedpkgcmd, 'fedpkg', name, enviro):

          continue

Pagure dist-git repos can have different default branches than master,
but during the mass rebuild, we always want to use the master branch.

This clones the repository on master even if it is not the default,
and it also fails (=skips the package) if there is no master branch.

This prevents cases like https://pagure.io/releng/issue/9213

Not sure if it makes a difference in practice but the --branch flag should be specified before the name argument.

fedpkgcmd = ['fedpkg', '--user', 'releng', 'clone', '--branch', 'master', name]

Because it is an option to the clone command and name is an argument and the convention is to specify options before arguments (see the manpage for example).

I don't think it matters at all, but done.

rebased onto 3756ca1f7f28dabd0d6deb6e883215497b7d6225

4 years ago

rebased onto c24dd2dcdbd5783a11cc929c1e97156dac281783

4 years ago

rebased onto b0eb90e78d890c1603ecaa4d1d9a229adddab518

4 years ago

rebased onto b0eb90e78d890c1603ecaa4d1d9a229adddab518

4 years ago

rebased onto 0ab9196498deb8961176d33dacf357b1b1041f49

4 years ago

rebased onto a850a4c

4 years ago

Pull-Request has been merged by cverna

4 years ago
Metadata