diff --git a/dh_python2 b/dh_python2 index 4d6f603d988e2f55dab3889c093f0b87846bfda3..f2150873df7df88280bfc05468b58545ce1cf99d 100755 --- a/dh_python2 +++ b/dh_python2 @@ -329,8 +329,7 @@ def scan(package, dname=None, clean_dbg_pkg=True): if '/usr/lib/python3' in root or\ '/usr/local/lib/python3' in root: # warn only once - warn = root[root.find('/lib/python'):].count('/') == 2 - if warn: + if root[root.find('/lib/python'):].count('/') == 2: log.warning('Python 3.x location detected, ' 'please use dh_python3: %s', root) continue diff --git a/dh_python2.rst b/dh_python2.rst index 244be489155fc2f5a28dba619f84b1c1243d4a8f..acc6185f77761416a712dbdf37cb74787a40587f 100644 --- a/dh_python2.rst +++ b/dh_python2.rst @@ -164,6 +164,5 @@ SEE ALSO * /usr/share/doc/python-doc/README.PyDist (python-doc package) * pycompile(1), pyclean(1) * dh_python3(1), py3compile(1), py3clean(1) -* Wiki pages about converting package to dh_python2: - http://wiki.debian.org/Python/PythonSupportToDHPython2 - http://wiki.debian.org/Python/PyCentral2DhPython2 +* Wiki page about converting package to dh_python2: + http://wiki.debian.org/Python/TransitionToDHPython2