<p>Em 21/07/2011 15:08, "Ben Walton" <<a href="mailto:bwalton@opencsw.org">bwalton@opencsw.org</a>> escreveu:<br>
><br>
> Excerpts from Maciej Bliziński's message of Thu Jul 21 09:52:22 -0400 2011:<br>
><br>
> > > +class GPGDaemon < WEBrick::HTTPServlet::AbstractServlet<br>
> > > +  VALID_TREES = %w(unstable current)<br>
> > > +  VALID_ARCHES = %w(i386 sparc)<br>
> > > +  VALID_RELEASE = %w(5.9 5.10 5.11)<br>
><br>
> For my purposes, I can discern them from the file system...I<br>
> considered that but erred toward hard coding for now.<br>
><br>
> Thoughts?</p>
<p>We need to arrange a place in the source code tree where we would keep shared data in a portable format. Ideally, something that can be processed in shell as well as in higher level languages. I was thinking about gar/v2/etc or gar/v2/share (if it exists) as the place for these data. We would also need to think where to put these files in the filesystem hierarchy when creating packages with gar and friends. For this purpose, I would suggest /opt/csw/share/opencsw. For the file format, I have 2 alternative ideas:</p>

<p>1. Keep the data in a simple text format so that it is easy to read the right bit of data in shell<br>
2. Keep the data in json and provide a shell utility that prints the requested piece of data to stdout.</p>
<p>Does any of that sound good?</p>
<p>Maciej </p>