Skip to content
Snippets Groups Projects
Commit 021816ea authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

strip extra slashes before checking private dirs

parent 7fae4cbe
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment