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

invoke `pycentral pkgremove foo` in preinst if upgrading from python-central based package

parent 5149c7f9
No related branches found
No related tags found
No related merge requests found
# make sure python-central files are removed before new package is installed
if [ -f /var/lib/pycentral/#PACKAGE#.pkgremove ] || [ -f /var/lib/pycentral/pkgremove ]
then
pycentral pkgremove #PACKAGE#
rm -f /var/lib/pycentral/#PACKAGE#.pkgremove
fi
python-defaults (2.6.5-6) UNRELEASED; urgency=low
* dh_python2:
- invoke `pycentral pkgremove foo` in preinst if upgrading from
python-central based package
-- Piotr Ożarowski <piotr@debian.org> Sun, 27 Jun 2010 13:20:01 +0200
python-defaults (2.6.5-5) unstable; urgency=medium python-defaults (2.6.5-5) unstable; urgency=medium
* Use Python's compileall module instead of pycompile to byte-compile * Use Python's compileall module instead of pycompile to byte-compile
......
...@@ -564,6 +564,7 @@ def main(): ...@@ -564,6 +564,7 @@ def main():
pyclean_added = False # invoke pyclean only once in maintainer script pyclean_added = False # invoke pyclean only once in maintainer script
if stats['compile']: if stats['compile']:
dh.autoscript(package, 'preinst', 'preinst-pycentral-clean', '')
dh.autoscript(package, 'postinst', 'postinst-pycompile', '') dh.autoscript(package, 'postinst', 'postinst-pycompile', '')
dh.autoscript(package, 'prerm', 'prerm-pyclean', '') dh.autoscript(package, 'prerm', 'prerm-pyclean', '')
pyclean_added = True pyclean_added = True
......
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