[Debian-med-packaging] Fwd: another source of URLs for DUCK: debian/upstream

Simon Kainz simon at familiekainz.at
Sat Aug 24 15:09:37 UTC 2013


Am 2013-08-23 13:39, schrieb Andreas Tille:
> Hi Simon,
>
> On Fri, Aug 23, 2013 at 01:19:49PM +0200, Simon Kainz wrote:
>    
>> Yes, i think lintian checks are a very good idea.
>>
>> Currently i am trying to integrate umegaya data into DUCK, and as I
>> started parsing the YAML data, i found those errors.
>>      
> Good to have another sanity check!
>
>    
>> Is there already some work done concerning lintian checks?
>>      
> Not yet.  The only hint about this is, that David Bremner wanted to
> provide *help* (but did not wanted to do the work himself).
>
>    
>> I'm asking
>> this because if so, I'd like to eventually use an already existing set
>> of rules to check upstream files. Currently I'm only checking if all
>> fields in the upstream files are also listed on
>> https://wiki.debian.org/UpstreamMetadata.
>>      
> Please note that d/upstream *citation* data (so just a subset) is
> imported into UDD.  I consider importing the other fields as well
> in the not so distant future.
>
>    
>> Otherwise I'd gladly help working on a lintian module.
>>      
> I have never written any lintian check so some kind of kickstart would
> be great.
>
>    
Hi!

I wrote a _very basic_ lintian check, available here:

http://familiekainz.at/deb/lintian/metadata.tgz
This  check issues a wishlist tag if the upstream file is not present.

If it's there, it checks if it's a valid YAML file (if not, you get a W: 
debian-upstream-file-is-invalid) and after that, if there are field 
names not mentioned on https://wiki.debian.org/UpstreamMetadata.

More to come  for sure, if there is some interest in it.

This works for me with Lintian v2.5.6.

Either put both files in /usr/share/lintian/checks and edit

/usr/share/lintian/profiles/debian/main.profile. There just append 
metadata to make linitian aware of the new check.

OR (what I did):

Copy /usr/share/lintian to some other dir and set 
LINTIAN_ROOT=<new_lintian_dir>  before running lintian. This prevents 
screwing up the "real" lintian installation.
You still have to edit profiles/debian/main.profile and add
the "metadata"check, otherwise the check won't be executed.

I suggest using  lintian -I to get  more detailed information.
> Kind regards
>
>        Andreas.
>
>    
Waiting for comments..

Bye,

Simon




More information about the Debian-med-packaging mailing list