Package: smartpm Version: 0.39-1 Severity: important Smart doesn't work at all as a user for me because my /etc/auto.misc file isn't world readable (it contains passwords).
Eg $ smart search bash Traceback (most recent call last): File "/usr/bin/smart", line 193, in ? main(sys.argv[1:]) File "/usr/bin/smart", line 160, in main forcelocks=opts.ignore_locks, loglevel=opts.log_level) File "/usr/lib/python2.3/site-packages/smart/__init__.py", line 114, in init ctrl = Control(configfile, forcelocks) File "/usr/lib/python2.3/site-packages/smart/control.py", line 53, in __init__ self._fetcher = Fetcher() File "/usr/lib/python2.3/site-packages/smart/fetcher.py", line 52, in __init__ self._mediaset = MediaSet() File "/usr/lib/python2.3/site-packages/smart/media.py", line 33, in __init__ self.discover() File "/usr/lib/python2.3/site-packages/smart/media.py", line 40, in discover for lst in hooks.call("discover-medias"): File "/usr/lib/python2.3/site-packages/smart/hook.py", line 64, in call val = hook[0](*hookparam, **hookkwparam) File "/usr/lib/python2.3/site-packages/smart/media.py", line 331, in discoverAutoMountMedias for line in open(mapfile): IOError: [Errno 13] Permission denied: '/etc/auto.misc' The following simple patch fixes the problem. --- media.py.orig 2004-12-07 13:29:59.000000000 +0000 +++ media.py 2006-04-22 09:47:26.000000000 +0100 @@ -320,13 +320,13 @@ def discoverAutoMountMedias(): result = [] - if os.path.isfile("/etc/auto.master"): + if os.access("/etc/auto.master", os.R_OK): for line in open("/etc/auto.master"): line = line.strip() if not line or line[0] == "#": continue prefix, mapfile = line.split()[:2] - if os.path.isfile(mapfile): + if os.access(mapfile, os.R_OK): firstline = False for line in open(mapfile): if firstline and line.startswith("#!"): And now all is well $ smart search bash Loading cache... Updating cache... ######################################## [100%] bash - The GNU Bourne Again SHell dash - The Debian Almquist Shell devscripts - Scripts to make the life of a Debian Package maintainer easier sash - Stand-alone shell -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing'), (70, 'stable'), (50, 'unstable'), (10, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15-1-686-smp Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages smartpm depends on: ii libc6 2.3.6-3 GNU C Library: Shared libraries an ii python2.3 2.3.5-9.1 An interactive high-level object-o ii python2.3-gtk2 2.8.2-3 Python bindings for the GTK+ widge ii python2.3-pexpect 2.0-1 Python 2.3.x module for automating ii python2.3-pycurl 7.15.2-1 Python bindings to libcurl smartpm recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]