From 021816ea4b0024944f22533d96748dbdf405d972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org> Date: Thu, 17 Jun 2010 09:34:00 +0200 Subject: [PATCH] strip extra slashes before checking private dirs --- dh_python2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dh_python2 b/dh_python2 index 3d34f4f..857bdf3 100755 --- a/dh_python2 +++ b/dh_python2 @@ -273,7 +273,7 @@ def scan(package, dname=None): ('usr/lib/%s', 'usr/lib/games/%s', 'usr/share/%s', 'usr/share/games/%s')] else: - proot = "debian/%s/%s" % (package, dname) + proot = join('debian', package, dname.strip('/')) private_to_check = [dname[1:]] for root, dirs, file_names in os.walk(proot): -- GitLab