juhp / fbrnch

Tool to update fedora packages branches
https://hackage.haskell.org/package/fbrnch
GNU General Public License v2.0
23 stars 3 forks source link

parallel -B for one distro only #15

Closed QuLogic closed 3 years ago

QuLogic commented 3 years ago

I have some packages where others have taken up EPEL packaging. I do not bother with those, nor update them. However, fbrnch parallel -B attempts to checkout and build those branches. It would be nice to have a global setting of some sort, or different flag, so that branches for only one distro would count in parallel. I would only want to do f?? branches, but an epel packager might want epel? branches.

juhp commented 3 years ago

This is a good suggestion, thank you, and should not be too hard to implement.

juhp commented 3 years ago

A simpler solution might be to make -B only imply Fedora (ie not EPEL).

Hm, or... replace -B with --fedora and --epel, perhaps.

A different approach might be to add a config file with default-branches:. Edit: ah reading your suggestion again I see you already suggested that (though I was actually thinking per package), I think you are right globally makes more sense -- let me ponder a little more. (Might be about time to have a config file anyway, though not quite sure yet what else should be in there.)

juhp commented 3 years ago

A workaround of course would be to do say fbranch parallel -x epel8 - that's a bit more typing of course.

juhp commented 3 years ago

It took a while, but finally I implemented [--all-fedora|-F] (and --all-epel). It should be in 0.6.5 builds soon.

ie use as fbrnch parallel -F etc (it works for all commands that take branch options).