← Back to team overview

pkgme-devs team mailing list archive

Re: pkgme for extras

 

On 28 July 2012 02:33, Allison Randal <allison@xxxxxxxxxx> wrote:
> On 05/08/2012 02:33 PM, Allison Randal wrote
>>
>> And, yes, I'd be happy to work on developing an ARB backend (or whatever
>> else is needed), and imagine other ARB members would be also.
>
> Despite my best intentions, all I've managed so far is the attached
> patch. It's a small extras backend that reads the config values pkgme
> needs from a .json file, with sane defaults for extras, so only unusual
> values need to be specified.
>
> The big time blocker for me at the moment is digging into the pkgme
> source to find how to request and pass additional configuration
> variables to the copyright and source/format files, which would be
> required for extras. It would be nice if pkgme could somehow access the
> default license text provided by dh-make. But, dh-make really only
> supports a handful of licenses anyway, so not a big deal to duplicate
> their default text in pkgme.
>
> That's pretty much all there is to it. I'd appreciate any assistance in
> the form of pointers to what part of the code to dig at,
> additions/modifications to the patch, or offers of chocolate if I finish
> (hey, motivation is key).
>

Hey Allison,

Thanks for the patch!

This sounds an awful lot like the backends we already have in place
for supporting submissions that come through developer.ubuntu.com,
lp:pkgme-devportal.

They look for a `devportal-metadata.json` file, that might look
something like this::

  {
      "package_name": "jabberwocky",
      "description": "The Jabberwocky, by Lewis Carroll",
      "icons": {
          "48x48": "jabberwocky.png"
          }
  }

And then consult that file for things that pkgme can't already figure out.

It does some kind of handling for license, but I'm not sure if that's
what you want for ARB.

What's driving the requirement for varying the source format?

Overall, I'd recommend starting with lp:pkgme-devportal and patching
it if it doesn't meet your needs. We probably want it to work for both
ARB & commercial apps.

cheers,
jml


Follow ups

References