[PATCH koji] Added support for building from git repositories

Jesse Keating jkeating at redhat.com
Mon Sep 17 14:12:59 UTC 2007


On Mon, 17 Sep 2007 10:06:04 -0400
rob myers <rob.myers at gtri.gatech.edu> wrote:

> does anyone have any ideas about how to abstract or generalize the SCM
> backend from koji?  the cvs/svn/git SCM backends all perform similar
> functions and use similar code- what is the best way to make them
> co-exist with maintainability and extensibility?

Probably the best way is to create an "scm_callback" or some such.
Each function that deals with scm calls just calls
"scm_callback(options)".  A config file setting would define which
scm_callback to use, either git/svn/hg/cvs/etc...  They would all need
to take the same options (whether or not they do anything with all the
options doesn't matter).  This way scm oddities are defined once per
scm in the callback definition, and the rest of the koji code just
calls generic scm_callback functions.

Make sense?

-- 
Jesse Keating
Fedora -- All my bits are free, are yours?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-buildsys-list/attachments/20070917/f86817d0/attachment.sig>


More information about the Fedora-buildsys-list mailing list