Package: policycoreutils
Version: 1.30-2

Debian version: testing/unstable

python2.3 and python2.4 complains about problems with genhomedircon:

# python2.4 /usr/sbin/genhomedircon
  File "/usr/sbin/genhomedircon", line 35
    except:
         ^
SyntaxError: invalid syntax

# python2.3 /usr/sbin/genhomedircon
  File "/usr/sbin/genhomedircon", line 35
    except:
         ^
SyntaxError: invalid syntax

Looks like code from line 30 should be in form:

--cut--
try:
        fd=open("/etc/shells", 'r')
        VALID_SHELLS=fd.read().split('\n')
        fd.close()
        if "/sbin/nologin" in VALID_SHELLS:
                VALID_SHELLS.remove("/sbin/nologin")
except:
        VALID_SHELLS = ['/bin/sh', '/bin/bash', '/bin/ash', '/bin/bsh', 
'/bin/ksh', '/usr/bin/ksh', '/usr/bin/pdksh', '/bin/tcsh', '/bin/csh', 
'/bin/zsh']
--cut--

rather than (in current):

--cut--
fd=open("/etc/shells", 'r')
VALID_SHELLS=fd.read().split('\n')
fd.close()
if "/sbin/nologin" in VALID_SHELLS:
        VALID_SHELLS.remove("/sbin/nologin")
except:
        VALID_SHELLS = ['/bin/sh', '/bin/bash', '/bin/ash', '/bin/bsh', 
'/bin/ksh', '/usr/bin/ksh', '/usr/bin/pdksh', '/bin/tcsh', '/bin/csh', 
'/bin/zsh']
--cut--

-- 
Piotr 'aniou' Meyer


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to