Package: policycoreutils
Version: 2.0.16-1
Severity: normal
Tags: patch

$ chcat -L
  File "/usr/bin/chcat", line 80
    else
       ^
SyntaxError: invalid syntax

In two places in the script a : seems to be missing after an else
statement. The attached patch fixes this.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages policycoreutils depends on:
ii  libc6                        2.6.1-1     GNU C Library: Shared libraries
ii  libpam0g                     0.79-4      Pluggable Authentication Modules l
ii  libselinux1                  2.0.15-2+b1 SELinux shared libraries
ii  libsemanage1                 2.0.3-1+b1  shared libraries used by SELinux p
ii  libsepol1                    2.0.3-1+b1  Security Enhanced Linux policy lib
ii  python                       2.4.4-6     An interactive high-level object-o
ii  python-selinux               2.0.15-2+b1 Python bindings to SELinux shared 
ii  python-semanage              2.0.3-1+b1  Python bindings  for SELinux polic
ii  sepolgen                     1.0.8-1     A Python module used in SELinux po

Versions of packages policycoreutils recommends:
ii  selinux-policy-refp 0.0.20070507-5.1~fjp Targeted variant of the SELinux re

-- no debconf information
--- /usr/bin/chcat      2007-05-07 08:16:26.000000000 +0200
+++ bin/chcat   2007-09-01 22:52:00.000000000 +0200
@@ -77,7 +77,7 @@
             
         if len(cats) > 0:
             new_serange = "%s-%s:%s" % (serange[0], top[0], ",".join(cats))
-        else
+        else:
             new_serange = "%s-%s" % (serange[0], top[0])
             
         if add_ind:
@@ -155,7 +155,7 @@
 
         if len(cats) > 0:
             new_serange = "%s-%s:%s" % (serange[0], top[0], ",".join(cats))
-        else
+        else:
             new_serange = "%s-%s" % (serange[0], top[0])
             
         if add_ind:

Reply via email to