#466 RFE: fedpkg local should support --nocheck
Closed: Invalid 2 years ago by rjones. Opened 2 years ago by rjones.

This doesn't work, but should:

$ fedpkg local --nocheck

It would just pass the --nocheck option through to rpmbuild.


Hi @rjones, there is no regular argument "--nocheck" for fedpkg local.

fedpkg local --help
usage: fedpkg local [-h] [--builddir BUILDDIR] [--buildrootdir BUILDROOTDIR] [--arch ARCH] [--define DEFINE] [--md5] [--with BCOND_WITH] [--without BCOND_WITHOUT] ...

Locally test run of rpmbuild producing binary RPMs. The rpmbuild output will be logged into a file named .build-%{version}-%{release}.log

positional arguments:
  extra_args            Custom arguments that are passed to the 'rpmbuild'. Use '--' to separate them from other arguments.

options:
  -h, --help            show this help message and exit
  --builddir BUILDDIR   Define an alternate builddir
  --buildrootdir BUILDROOTDIR
                        Define an alternate buildrootdir
  --arch ARCH           Prep for a specific arch
  --define DEFINE       Pass custom macros to rpmbuild, may specify multiple times
  --md5                 Use md5 checksums (for older rpm hosts)
  --with BCOND_WITH     Enable configure option (bcond) for the build
  --without BCOND_WITHOUT
                        Disable configure option (bcond) for the build

But it is possibility to pass extra arguments to underlaying command (in this case rpmbuild as you mentioned). This is performed by adding additional --. The mechanism is described above. Example:

fedpkg local -- --nocheck

Did it work for you?

That works great, thanks.

Metadata Update from @rjones:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata