koji chain-build usage

Doug Reiland dreiland at gmail.com
Fri Feb 26 18:35:59 UTC 2010


It did error, I hacked the code when I thought it was in error.

Man, it would be nice to be able to undo an import.

Doug

On Fri, Feb 26, 2010 at 11:46 AM, Mike Bonnet <mikeb at redhat.com> wrote:
> On 02/26/2010 11:27 AM, Doug Reiland wrote:
>> Sorry for the previous email, it got sent while editing
>>
>> In koji-cli in handle_chain_build:
>>        elif '://' in src:
>>             # quick check that src might be a url
>>             build_level.append(src)
>>         elif '/' not in src and not src.endswith('.rpm') and
>> len(src.split('-')) >= 3:
>>             # quick check that it looks like a N-V-R
>>             build_level.append(src)
>>
>> should it be:
>>        elif '://' in src:
>>             # quick check that src might be a url
>>             build_level.append(src)
>>         elif '/' not in src and src.endswith('.rpm') and
>> len(src.split('-')) >= 3:
>>             # quick check that it looks like a N-V-R
>>             build_level.append(src)
>
> No, the "not src.endswith('.rpm')" was intentional.  chain-build does
> not support building from srpms.  This was a hard-coded policy decision,
> before Koji had a more flexible policy system for specifying whether
> building from srpm was ok or not on a per-tag basis.  chain-build could
> be made to support srpms now, and leave the policy to the policy system.
>  If this is desirable, please file a ticket at
> http://fedorahosted.org/koji and I'll take a look.
>
> chain-build allows you to specify groups of SCM URLs to be built, or
> NVRs to wait for.  The NVR support allows you to start a chain-build
> with " foo-1.0-1 : " which would say "wait until foo-1.0-1 is available
> in the current repo, and then start building the rest of the chain".
> This was a request from Fedora developers so they could make
> chain-builds depend on previous non-chained builds, removing the
> necessity to wait for repo regens, and allowing them to break up chain
> builds into multiple chunks.
>
>> I attempted to koji chain-build a couple of srpms for testing, but
>> task is just sitting on "waitrepo".
>> Also, I noticed it doesn't upload srpms so what is the BKM? do you
>> import, then chain-build?
>
> I'm surprised the chain-build command didn't return an error.  What
> command did you run?
> --
> buildsys mailing list
> buildsys at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/buildsys
>


More information about the buildsys mailing list