On Sun, 12 Apr 2009 14:13:22 +0100, Enrico Zini wrote:
> Hello,
Ciao Enrico,
> I've prepared a fix for a bug that I cannot reproduce, so I'd like
> others to test it before I upload:
>
> Preconditions:
> 1. On sid or experimental
Running sid/experimental on i386 here.
> 2. apt-get install apt-xapian-index OR run update-apt-xapian-index as
> root
> 3. See if you get the problem at #521346
Yes, I am able to reproduce it on my system.
In a sid chroot (cowbuilder), the 0.18 package even fails with a different
error:
---8<---
# update-apt-xapian-index
Reading current timestamp failed: [Errno 2] No such file or directory: '/var/lib/apt-xapian-index/update-timestamp'. Assuming the index has not been created yet.
Rebuilding Xapian index... 0%/usr/share/apt-xapian-index/plugins/apttags.py:104: DeprecationWarning: Accessed deprecated property Package.candidateRecord, please see the Version class for alternatives.
rec = pkg.candidateRecord
Traceback (most recent call last):
File "/usr/sbin/update-apt-xapian-index", line 596, in <module>
buildIndex(dbdir, addons, progress)
File "/usr/sbin/update-apt-xapian-index", line 298, in buildIndex
addon.obj.index(document, pkg)
File "/usr/share/apt-xapian-index/plugins/apttags.py", line 104, in index
rec = pkg.candidateRecord
File "/usr/lib/python2.5/site-packages/apt/package.py", line 106, in __get__
return property.__get__(self, obj, type)
File "/usr/lib/python2.5/site-packages/apt/package.py", line 613, in candidateRecord
return self.candidate.recor
AttributeError: 'Version' object has no attribute 'recor'
--->8---
Maybe a typo there? Fixing it to "record" seems to help:
---8<---
# update-apt-xapian-index
Reading current timestamp failed: [Errno 2] No such file or directory: '/var/lib/apt-xapian-index/update-timestamp'. Assuming the index has not been created yet.
Rebuilding Xapian index... 0%/usr/share/apt-xapian-index/plugins/apttags.py:104: DeprecationWarning: Accessed deprecated property Package.candidateRecord, please see the Version class for alternatives.
rec = pkg.candidateRecord
/usr/share/apt-xapian-index/plugins/descriptions.py:75: DeprecationWarning: Accessed deprecated property Package.rawDescription, please see the Version class for alternatives.
self.indexer.index_text_without_positions(pkg.rawDescription)
/usr/share/apt-xapian-index/plugins/sizes.py:74: DeprecationWarning: Accessed deprecated property Package.installedSize, please see the Version class for alternatives.
instSize = pkg.installedSize
/usr/share/apt-xapian-index/plugins/sizes.py:75: DeprecationWarning: Accessed deprecated property Package.packageSize, please see the Version class for alternatives.
pkgSize = pkg.packageSize
Rebuilding Xapian index: done.
--->8---
> To test:
> 1. git clone git://git.debian.org/collab-maint/apt-xapian-index.git
> 2. cd apt-xapian-index
> 3. ./testrun
>
> If the packaged version didn't work, let me know of the results. More
> details at
> http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=25;att=0;bug=521346
The cloned repository failed the same way the packaged version did (on my host system):
---8<---
Rebuilding Xapian index... 15%
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 257, in raw_description
return self._records.LongDesc
File "/usr/lib/python2.5/site-packages/apt/package.py", line 214, in _records
if self.package._pcache._records.Lookup(self._cand.FileList[0]):
AttributeError: 'NoneType' object has no attribute 'FileList'
--->8---
In a clean sid chroot however, it seems to work fine:
---8<---
pingu:/apt-xapian-index# ./testrun
Reading current timestamp failed: [Errno 2] No such file or directory: 'testdb/update-timestamp'. Assuming the index has not been created yet.
Rebuilding Xapian index: done.
pingu:/apt-xapian-index#
--->8---
Ciao,
David
--
. ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
Attachment:
signature.asc
Description: PGP signature