> Hello.  These are just three instances of the same problem: python-apt
> has deprecated some old functions in favour of new ones.  But it seems
> that it did not just deprecate the old function, but it has also broken
> them.
> 
> Unfortunately, I cannot reproduce the bug in my system: in a clean
> chroot, it does not happen.  It probably only happens when having
> obsolete packages installed, or something like that.
> 
> Anyway, I've ported apt-xapian-index to the new python-apt API, and I
> hope that it fixes the problem.  I would like you to give it a try and
> tell me if it works:
> 
>   git clone git://git.debian.org/collab-maint/apt-xapian-index.git
>   cd apt-xapian-index
>   ./testrun
> 
> As soon as I know that it fixes the problem, I'll proceed with an
> upload.

Nope:

[ da...@server3 ] $ ./testrun 
Reading current timestamp failed: [Errno 2] No such file or directory:
'testdb/update-timestamp'. Assuming the index has not been created yet.
Reading Debtags database: done.  
Rebuilding Xapian index... 0%plugins/debtags.py:92: DeprecationWarning:
Use tags_of_package instead
  for tag in self.db.tagsOfPackage(pkg.name):
Rebuilding Xapian index... 0%
Traceback (most recent call last):
  File "./update-apt-xapian-index", line 596, in <module>
    buildIndex(dbdir, addons, progress)
  File "./update-apt-xapian-index", line 298, in buildIndex
    addon.obj.index(document, pkg)
  File "plugins/descriptions.py", line 77, in index
    self.indexer.index_text_without_positions(version.raw_description)
  File "/usr/lib/python2.5/site-packages/apt/package.py", line 256, in
raw_description
    return self._records.LongDesc
  File "/usr/lib/python2.5/site-packages/apt/package.py", line 213, in
_records
    if self.package._pcache._records.Lookup(self._cand.FileList[0]):
AttributeError: 'NoneType' object has no attribute 'FileList'

And thinking it might be a permission problem:

[ da...@server3 ] $ sudo ./testrun 
Reading current timestamp failed: [Errno 2] No such file or directory:
'testdb/update-timestamp'. Assuming the index has not been created yet.
Reading Debtags database: done.  
Rebuilding Xapian index... 0%plugins/debtags.py:92: DeprecationWarning:
Use tags_of_package instead
  for tag in self.db.tagsOfPackage(pkg.name):
Rebuilding Xapian index... 0%
Traceback (most recent call last):
  File "./update-apt-xapian-index", line 596, in <module>
    buildIndex(dbdir, addons, progress)
  File "./update-apt-xapian-index", line 298, in buildIndex
    addon.obj.index(document, pkg)
  File "plugins/descriptions.py", line 77, in index
    self.indexer.index_text_without_positions(version.raw_description)
  File "/usr/lib/python2.5/site-packages/apt/package.py", line 256, in
raw_description
    return self._records.LongDesc
  File "/usr/lib/python2.5/site-packages/apt/package.py", line 213, in
_records
    if self.package._pcache._records.Lookup(self._cand.FileList[0]):
AttributeError: 'NoneType' object has no attribute 'FileList'

David



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to