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

Remove '-V' option from pyclean call in runtime.d/public_modules.rtremove

parent b4a0958f
No related branches found
No related tags found
No related merge requests found
python-defaults (2.6.5-3) UNRELEASED; urgency=low
*
* Remove '-V' option from pyclean call in runtime.d/public_modules.rtremove
-- Matthias Klose <doko@debian.org> Fri, 18 Jun 2010 00:07:51 +0200
-- Piotr Ożarowski <piotr@debian.org> Fri, 18 Jun 2010 10:25:59 +0200
python-defaults (2.6.5-2) unstable; urgency=low
......
......@@ -594,11 +594,14 @@ def main():
dh.autoscript(package, 'postinst', 'postinst-pycompile', args)
pydist_file = join('debian', "%s.pydist" % package)
if exists(pydist_file) and validate_pydist(pydist_file, True):
dstdir = join('debian', package, 'usr/share/python/dist/')
if not exists(dstdir):
os.makedirs(dstdir)
fcopy(pydist_file, join(dstdir, package))
if exists(pydist_file):
if not validate_pydist(pydist_file, True):
log.warning("%s.pydist file is invalid", package)
else:
dstdir = join('debian', package, 'usr/share/python/dist/')
if not exists(dstdir):
os.makedirs(dstdir)
fcopy(pydist_file, join(dstdir, package))
dh.save()
......
......@@ -2,7 +2,7 @@
VERSION=${2#python}
if which python >/dev/null 2>&1 && which pyclean >/dev/null 2>&1; then
pyclean -V $VERSION /usr/lib/python$VERSION/
pyclean /usr/lib/python$VERSION/
else
find /usr/lib/python$VERSION/ -name '*.py[co]' -delete
fi
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