[debexpo-devel] implement autobuilders
Serafeim Zanikolas
serzan at hellug.gr
Tue Feb 3 01:13:59 CET 2009
On Mon, Feb 02, 2009 at 11:37:26PM +0000, Jonny Lamb wrote:
> On Mon, Feb 02, 23:29:14 +0000, Serafeim Zanikolas wrote:
> > I had a quick look at its API and I can't say I'm impressed. It's more of a
> > wrapper around the gpg command, rather than a thought out abstraction.
> > But you guys don't have to take my word, check out the examples:
> >
> > http://sourceforge.net/docman/display_doc.php?docid=5499&group_id=29555
>
> Yeah, it doesn't look so cool. However, I'd like debexpo to have /some/
> kind of wrapper class so there isn't endless code repetition whenever
> the gpg command is executed.
I could easily add a class in lib/util.py, to be instantiated only once, that
reads the gpg path off the config file only upon instantiation, and defines
methods for "public" use (parse key id, enc/dec, whatever), in a way that they
reuse a "private" methods for invoking gpg and parsing the output.
-S
More information about the debexpo-devel
mailing list