Package: command-not-found
Version: 0.2.38-1
Severity: minor
Tags: patch

Dear Maintainer,

The python script in package command-not-found designed for use in ubuntu.
Because Debian is a package sudo is configured to group sudo, and not on the
admin group as in ubuntu.

To fix this, simple change line 93 in /usr/share/command-not-
found/CommandNotFound/CommandNotFound.py from "admin" to "sudo"



-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages command-not-found depends on:
ii  apt-file        2.5.1
ii  lsb-release     4.1+Debian8
ii  python          2.7.3-4
ii  python-gdbm     2.7.3-1
ii  python-support  1.0.15

command-not-found recommends no packages.

command-not-found suggests no packages.

-- no debconf information
--- ./CommandNotFound.py	2013-03-26 14:53:50.611756032 +0400
+++ /usr/share/command-not-found/CommandNotFound/CommandNotFound.py	2013-03-26 14:22:39.019186821 +0400
@@ -90,7 +90,7 @@
             print _("Could not find the database of available applications, "
                     "run update-command-not-found as root to fix this")
         try:
-            self.user_can_sudo = grp.getgrnam("admin")[2] in posix.getgroups()
+            self.user_can_sudo = grp.getgrnam("sudo")[2] in posix.getgroups()
         except KeyError:
             self.user_can_sudo = False
 

Reply via email to