[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [GSoC] Adding information to UDD and inject the rendering to tasks,py



Hi Akshita,

On Sun, Apr 12, 2015 at 01:18:06PM +0530, Akshita Jha wrote:
> Traceback (most recent call last):
> File "/srv/udd.debian.org/udd//udd.py", line 86, in <module>
>     exec "gatherer.%s()" % command
>   File "<string>", line 1, in <module>
>   File "/srv/udd.debian.org/udd/udd/blends_prospective_gatherer.py", line
> 316, in run
>     if sprosp['license'] == '':
> KeyError: 'license'
> 
> This error occurs wherever "if sprosp['license'] == ' ' " is checked. I
> solved these errors by using try-except block:
> 
> try:
>     if sprosp['license'] == '':
>         sprosp['license'] = 'free'
> except KeyError:
>     sprosp['license'] = 'free'

While this sounds like a sensible extension I do not run into this error.
 
> Now when I run $./update-and-run.sh blends-prospective, I get a new error:
> 
> Error while inserting packages 'source'
> Traceback (most recent call last):
>   File "/srv/udd.debian.org/udd//udd.py", line 86, in <module>
>     exec "gatherer.%s()" % command
>   File "<string>", line 1, in <module>
>   File "/srv/udd.debian.org/udd/udd/blends_prospective_gatherer.py", line
> 417, in run
>     cur.executemany(pkgquery, pkgs)
> KeyError: 'source'
> 
> I am not sure if something has changed in machine readable files which is
> causing this error. These errors did not occur before.

Could you please check the files in

   /srv/udd.debian.org/mirrors/machine-readable

It smells as if something would be broken there.  I do not run into this
error.

> If this helps, the program never goes inside the for loop:
>     "for stanza in deb822.Sources.iter_paragraphs(p.stdout):"
> which is why sprosp['license'] = '' is not initialized.
> 
> Do you also get the same errors ?

No.  It runs fine for me with the current status of Git.
 
> And also can you help me understand what exactly the contents of
> <source>.copyright, <source>.control, <source>.vcs, <source>.changelog
> represent ?

This are the debian/{copyright,control,changelog} files as if you
checkout the source via

   apt-get source <source>

The *.vcs file is generated by the machine-readable gatherer and simply
stores where the packaging really was found (in contrast to what the Vcs
fields might say).
 
> If I understand correctly :
> <source>.vcs : contains the information its blend and its vcs broswer.
> <source>.chnagelog : contains all the changes that were made to the source
> <source>.copyright : contains license information
> <source>.control : contains infromation about its packages, dependencies,
> maintainers etc.

Since you confirmed that you have no idea about packaging you should
probably get a bit familiar with these files (except *.vcs which is
"home-invented").
 
> Is there something other than this that I need to know about these?

Hope this helps

     Andreas.

-- 
http://fam-tille.de


Reply to: