Bug 1475134

Summary: RFE: copr build --{in,ex}clude-chroots=PATTERN, copr create --add-chroots=PATTERN
Product: [Community] Copr Reporter: Pavel Raiskup <praiskup>
Component: cliAssignee: Copr Team <copr-team>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-14 10:33:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Raiskup 2017-07-26 06:53:23 UTC
It would be nice to be able to specify chroots by pattern, like:

  $ copr build mycopr --include-chroots=fedora'*' my.src.rpm
  $ copr build mycopr --include-chroots='*x86_64*' \
        --exclude-chroots=fedora-rawhide-x86_64 my.src.rpm

and:

  $ copr build mycopr --add-chroots='fedora-2[567]-'{x86_64,i386}

Comment 1 Pavel Raiskup 2017-07-26 06:54:06 UTC
Sorry, I meant:

  $ copr create mycopr --add-chroots='fedora-2[567]-'{x86_64,i386} ...

For creating all x86_64/i386 chroots for fedora 25 to 27.

Comment 2 Pavel Raiskup 2020-12-14 10:33:03 UTC
I think we could simply re-use the `--chroot` option, and add wild-card support there.
So I'm closing this in favor of older bug 1399815.  The thing could look like:

  $ copr build --chroot='*' --no-chroot='epel-*'

Note there also is somewhat related
https://pagure.io/copr/copr/issue/1350

*** This bug has been marked as a duplicate of bug 1399815 ***