Bug#555704: zeya: Fails if the path contains a broken symlink

2009-11-11 Thread Didier Raboud
Package: zeya
Version: 0.3-2
Severity: normal

Hi Romain, 

thanks for this great and promising zeya.

I noticed that it fails for me because my main Music folder contains a broken
symlink.

The failure can be reproduced as following:

$ cd `mktemp -d`; ln -s /nonexistant .; zeya --path=.
Using 'dir' backend.
Scanning for music in '/tmp/tmp.qYawB7LnB6'...
Traceback (most recent call last):
  File /usr/bin/zeya, line 349, in module
backend = get_backend(backend_type)
  File /usr/bin/zeya, line 295, in get_backend
return DirectoryBackend(path)
  File /usr/share/zeya/directory.py, line 77, in __init__
self.setup_db()
  File /usr/share/zeya/directory.py, line 87, in setup_db
self.fill_db(previous_db)
  File /usr/share/zeya/directory.py, line 138, in fill_db
file_mtime = os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/tmp/tmp.qYawB7LnB6/nonexistant'

Best regards, 

OdyX

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (750, 'unstable'), (700, 'testing-proposed-updates'), (700, 
'testing'), (90, 'experimental'), (50, 'testing-proposed-updates'), (50, 
'experimental'), (50, 'unstable'), (50, 'testing')
Architecture: amd64 (x86_64)

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

Versions of packages zeya depends on:
ii  python2.5.4-2An interactive high-level object-o
ii  python-simplejson 2.0.9-1Simple, fast, extensible JSON enco
ii  python-support1.0.4  automated rebuilding support for P
ii  python-tagpy  0.94.7-1   Python module for manipulating tag
ii  vorbis-tools  1.2.0-6several Ogg Vorbis tools

Versions of packages zeya recommends:
ii  flac  1.2.1-2+b1 Free Lossless Audio Codec - comman
ii  mpg1231.9.1-2MPEG layer 1/2/3 audio player

zeya 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



Bug#555704: zeya: Fails if the path contains a broken symlink

2009-11-11 Thread Romain Francoise
Hi,

Didier Raboud did...@raboud.com writes:

 I noticed that it fails for me because my main Music folder
 contains a broken symlink.

Good catch, thanks. I'll forward your report upstream.

Cheers,
-- 
Romain Francoise rfranco...@debian.org
http://people.debian.org/~rfrancoise/



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