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

handle private dir paths without leading slash

parent 54a3b664
No related branches found
No related tags found
No related merge requests found
python-defaults (2.7.2-6) UNRELEASED; urgency=low
[ Scott Kitterman ]
* Fixed typo in python-policy (thanks to Jakub Wilk)
[ Piotr Ożarowski ]
* dh_python2:
- handle private dirs without leading slash
-- Scott Kitterman <scott@kitterman.com> Sat, 03 Sep 2011 11:21:35 -0400
python-defaults (2.7.2-5) experimental; urgency=low
......
......@@ -554,7 +554,13 @@ def main():
log.warning('dh_pydeb detected, PyDist feature disabled')
options.guess_deps = False
private_dir = None if not args else args[0]
if not args:
private_dir = None
else:
private_dir = args[0]
if not private_dir.startswith('/'):
# handle usr/share/foo dirs (without leading slash)
private_dir = '/' + private_dir
# TODO: support more than one private dir at the same time (see :meth:scan)
if options.skip_private:
private_dir = False
......
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