Re: update28.py: TypeError: 'NoneType' object is unsubscriptable
Hi
On Tue, 19 Jan 2010 17:52:38 +0100 Torsten Werner <twerner@debian.org> wrote:
> On Tue, Jan 19, 2010 at 12:29 PM, Mario Domenech Goulart
> <mario.goulart@gmail.com> wrote:
>> It seems that the suite table is empty (0 rows returned from "select *
>> from suite").
>>
>> Should I (or some previous script) have inserted something into the
>> suite table?
>
> You probably need at least 1 suite.
Ok. What script is supposed to fill the suite table?
I'm looking at update4.py and it seems it considers the suite table is
already filled with data.
I'm using a dak.conf based on debian's (modified). Here's what I get
from the conf file:
$ python
Python 2.5.4 (r254:67916, Nov 19 2009, 19:46:21)
[GCC 4.3.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psycopg2
>>> from daklib.dak_exceptions import DBUpdateError
>>> from daklib.utils import get_conf
>>> Cnf = get_conf()
>>> Cnf.SubTree("Suite").List()
['OldStable', 'Oldstable-Proposed-Updates', 'Stable',
'Proposed-Updates', 'Testing', 'Testing-Proposed-Updates', 'Etch-m68k',
'Unstable', 'Experimental']
If the suite table should have those values, I don't know what script is
supposed to insert them. Should it be an update*.py one? Or something
executed before the update*.py ones?
Best wishes.
Mario
Reply to: