From 13a07ea7e6f4eca748f885b7dfc8948b75665ef8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org>
Date: Wed, 21 Jul 2010 21:25:05 +0200
Subject: [PATCH] dh_python2: add {/usr,}/sbin to the list of directories with
 checked shebangs

---
 debian/changelog | 6 ++++--
 dh_python2       | 3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ab7ca0f..e483046 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,9 @@
 python-defaults (2.6.5-10) UNRELEASED; urgency=low
 
-  * dh_python2: add --depend command line option (use it if requires.txt
-    doesn't contain dependency that package needs)
+  * dh_python2:
+    - add --depend command line option (use it if requires.txt
+      doesn't contain dependency that package needs)
+    - add {/usr,}/sbin to the list of directories with checked shebangs
 
  -- Piotr Ożarowski <piotr@debian.org>  Wed, 21 Jul 2010 21:10:19 +0200
 
diff --git a/dh_python2 b/dh_python2
index 3934f02..e159635 100755
--- a/dh_python2
+++ b/dh_python2
@@ -304,7 +304,8 @@ def scan(package, dname=None):
                     break
             else:  # i.e. not public_dir and not private_dir
                 if len(root.split('/', 6)) < 6 and (\
-                   root.endswith('/bin') or root.endswith('/usr/games')):
+                   root.endswith('/sbin') or root.endswith('/bin') or\
+                   root.endswith('/usr/games')):
                    # /bin or /usr/bin or /usr/games
                     bin_dir = root
 
-- 
GitLab