From 77b459ae949f35b1f85be25c59092efc66e1abcf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org>
Date: Tue, 7 Sep 2010 20:04:51 +0200
Subject: [PATCH] use /usr/bin/python rather than python in
 python-minimal.postinst (closes: 595826)

---
 debian/changelog               | 2 ++
 debian/python-minimal.postinst | 2 +-
 debian/python.install          | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100644 debian/python.install

diff --git a/debian/changelog b/debian/changelog
index 605ca29..118741a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ python-defaults (2.6.6-2) UNRELEASED; urgency=low
       Debian package name pairs (to be used as a fall back source for
       PyDist feature)
     - TODO: disable PyDist feature if dh_pydeb is in debian/rules
+  * use /usr/bin/python rather than python in python-minimal.postinst
+    (closes: 595826)
 
  -- Piotr Ożarowski <piotr@debian.org>  Thu, 02 Sep 2010 19:18:26 +0200
 
diff --git a/debian/python-minimal.postinst b/debian/python-minimal.postinst
index b0637f4..de5e7ff 100644
--- a/debian/python-minimal.postinst
+++ b/debian/python-minimal.postinst
@@ -1,6 +1,6 @@
 #! /bin/sh
 set -e
 
-python -m compileall /usr/share/python/ >/dev/null
+/usr/bin/python -m compileall /usr/share/python/ >/dev/null
 
 #DEBHELPER#
diff --git a/debian/python.install b/debian/python.install
new file mode 100644
index 0000000..14077b9
--- /dev/null
+++ b/debian/python.install
@@ -0,0 +1 @@
+pydist/dist_fallback /usr/share/python/
-- 
GitLab