Package: software-center
Version: 2.0.7debian7
Followup-For: Bug #648289

Hello,

here are more details. The problem is in origin.py plugin
OriginPlugin.info:

        file = apt.apt_pkg.config.find_file("Dir::Cache::pkgcache")
        return dict(timestamp = os.path.getmtime(file))

This should be:

        file = apt.apt_pkg.config.find_file("Dir::Cache::pkgcache")
        try:
                timestamp = os.path.getmtime(file)
        except OSError:
                timestamp = 0
        return dict(timestamp=timestamp)

In my system, /var/cache/apt/pkgcache.bin does not exist. There is
instead an odd variation which looks like a leftover tempfile:

        $ ls -a /var/cache/apt/
        .  ..  apt-file  archives  pkgcache.bin.r8C355

This might be highlighting a bug in something else; however it is still
important that origin.py can deal with a missing pkgcache.

In the meantime, I'll try to make apt-xapian.index more fault tolerant
towards bugs in plugins.


Ciao,

Enrico

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages software-center depends on:
ii  app-install-data      2010.11.17
ii  aptdaemon             0.43+bzr707-1
ii  gnome-icon-theme      3.2.1.2-1
ii  gnome-menus           2.30.3-2+b1
ii  lsb-release           3.2-28
ii  policykit-1           0.103-1
ii  policykit-1-gnome     0.105-1
ii  python                2.7.2-9
ii  python-apt            0.8.0
ii  python-aptdaemon      0.43+bzr707-1
ii  python-aptdaemon-gtk  0.43+bzr707-1
ii  python-central        0.6.17
ii  python-dbus           0.84.0-2
ii  python-gconf          2.28.1-3
ii  python-gtk2           2.24.0-2
ii  python-webkit         1.1.8-2
ii  python-xapian         1.2.8-1
ii  python-xdg            0.19-3

Versions of packages software-center recommends:
pn  apt-xapian-index         0.44
pn  software-properties-gtk  0.76.7debian2+nmu1
pn  update-notifier          <none>

software-center suggests no packages.

-- no debconf information



-- 
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