2010/2/11 Miroslav Suchý <[email protected]>:
> On 02/11/2010 07:00 PM, Devan Goodwin wrote:
>>
>> FYI I think you can do most of this with tito build --release if you'd
>> like. All that syncing with CVS and building with Koji was done for
>> internal builds, and while untested with Fedora, I think it's exactly
>> the same. (minimal changes could be required but it should be close)
>>
>> Let me know if you'd like to use it and have any issues.
>
> No, thanks. Tito is good for building one package from git. But it could not
> do version compare, review of spec... So I will rather stick just with this
> simple wrapper around
>  make verrel
>  ./common/cvs-import.sh
>  make build
> which are maintained by Fedora guys for free.
>
> --
> Miroslav Suchy
> Red Hat Satellite Engineering
>

Tito actually does handle the version comparison but using the Fedora
tools maintains for free. Build --release when used with CVS is just a
wrapper over:

http://fedoraproject.org/wiki/PackageMaintainers/UpdatingPackageHowTo

Basically make new-sources does a no-op if the source tarball is
already uploaded, the git->CVS sync will have nothing to commit if
spec/patches haven't changed, and the make tag fails if the tag
already exists, at which point the make build will not be run.

Strangely enough the above link does not use cvs-import.sh for package
updates, I was told this was only for initial package uploads, but if
it *can* be used for subsequent updates I actually like the method
you're using better, as it cleans up the messy process of syncing
files between git->CVS.

So with that in mind, if so inclined you could probably beat your
script down to something close to just:

for package in packagelist:
 tito build --release --tag=packagename-version

But as I said it's never been tested against Fedora CVS and you might
have troubles if you need to mix building to Fedora CVS as well as
Spacewalk Koji from the same git branch, so maybe it's best to forget
I mentioned it. :)

Cheers,

Devan

-- 
Devan Goodwin <[email protected]>
http://rm-rf.ca

_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to