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

disable PyDist feature if dh sequencer is invoked --with pydeb

(closes: 630502, thanks to Gediminas Paulauskas for the original patch)
parent af75da57
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@ python-defaults (2.7.2-2) UNRELEASED; urgency=low
- add --ignore-namespace option that will disable handling
Egg-info's namespace_packages.txt (AKA namespace feature)
- PyDist: update dist_fallback file (with atypical Debian package names)
- disable PyDist feature if dh sequencer is invoked --with pydeb
(closes: 630502, thanks to Gediminas Paulauskas for the original patch)
-- Piotr Ożarowski <piotr@debian.org> Sun, 12 Jun 2011 13:28:48 +0200
......
......@@ -521,7 +521,9 @@ def main():
except IOError:
log.warning('cannot open debian/rules file')
else:
if re.compile('\n\s*dh_pydeb').search(fp.read()):
rules = fp.read()
if re.search('\n\s*dh_pydeb', rules) or \
re.search('\n\s*dh\s+[^#]*--with\s+pydeb', rules):
log.warning('dh_pydeb detected, PyDist feature disabled')
options.guess_deps = False
......@@ -646,6 +648,11 @@ def main():
with open(join(dstdir, package), 'a') as fp:
fp.writelines("%s\n" % i for i in nsp)
pyshared = join('debian', package, 'usr/share/pyshared/')
if not os.listdir(pyshared):
# remove empty pyshared directory
os.rmdir(pyshared)
dh.save()
if __name__ == '__main__':
......
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