[Python-modules-commits] [python-django] 01/01: Use dpkg-maintscript-helper's dir_to_symlink to correctly replace the app_template and project_template symlinks added in 1.9~rc2-2. (Closes: #807683)
Chris Lamb
lamby at moszumanska.debian.org
Sat Dec 12 19:20:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch debian/master
in repository python-django.
commit 5c3c3ce9931790ab56d3757e8ad087791c6db884
Author: Chris Lamb <lamby at debian.org>
Date: Sat Dec 12 21:07:12 2015 +0200
Use dpkg-maintscript-helper's dir_to_symlink to correctly replace the app_template and project_template symlinks added in 1.9~rc2-2. (Closes: #807683)
---
debian/changelog | 8 ++++++++
debian/control | 2 ++
debian/python-django.postinst | 11 +++++++++++
debian/python-django.postrm | 11 +++++++++++
debian/python-django.preinst | 11 +++++++++++
debian/python3-django.postinst | 11 +++++++++++
debian/python3-django.postrm | 11 +++++++++++
debian/python3-django.preinst | 11 +++++++++++
8 files changed, 76 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 3baf65b..8d54af9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+python-django (1.9-2) UNRELEASED; urgency=medium
+
+ * Use dpkg-maintscript-helper's dir_to_symlink to correctly replace the
+ app_template and project_template symlinks added in 1.9~rc2-2.
+ (Closes: #807683)
+
+ -- Chris Lamb <lamby at debian.org> Sat, 12 Dec 2015 21:02:28 +0200
+
python-django (1.9-1) unstable; urgency=medium
* Upload to unstable
diff --git a/debian/control b/debian/control
index a8b8bdb..2ae8ec2 100644
--- a/debian/control
+++ b/debian/control
@@ -29,6 +29,7 @@ X-Python-Version: >= 2.7
Package: python-django
Architecture: all
+Pre-Depends: dpkg (>= 1.17.14)
Depends: ${misc:Depends}, ${python:Depends}, python-django-common (= ${binary:Version})
Recommends: libjs-jquery, python-sqlparse, python-tz
Suggests: python-psycopg2, python-mysqldb, python-flup, python-sqlite, python-memcache, python-pil, python-bcrypt, python-yaml, geoip-database-extra | geoip-database-contrib, gettext, python-django-doc, ipython, bpython, libgdal1
@@ -59,6 +60,7 @@ Description: High-level Python web development framework (Python 2 version)
Package: python3-django
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}, python-django-common (= ${binary:Version})
+Pre-Depends: dpkg (>= 1.17.14)
Recommends: libjs-jquery, python3-sqlparse, python3-tz
Suggests: python3-psycopg2, python3-mysqldb, python3-flup, python3-sqlite, python3-memcache, python3-pil, python3-bcrypt, python3-yaml, geoip-database-contrib, gettext, python-django-doc, ipython3, bpython3, libgdal1
Description: High-level Python web development framework (Python 3 version)
diff --git a/debian/python-django.postinst b/debian/python-django.postinst
new file mode 100644
index 0000000..ce78d82
--- /dev/null
+++ b/debian/python-django.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+#DEBHELPER#
+
+for X in app_template project_template
+do
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/python2.7/dist-packages/django/conf/${X} \
+ /usr/share/python-django-common/django/conf/${X} \
+ 1.9-2~ python-django -- "$@"
+done
diff --git a/debian/python-django.postrm b/debian/python-django.postrm
new file mode 100644
index 0000000..ce78d82
--- /dev/null
+++ b/debian/python-django.postrm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+#DEBHELPER#
+
+for X in app_template project_template
+do
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/python2.7/dist-packages/django/conf/${X} \
+ /usr/share/python-django-common/django/conf/${X} \
+ 1.9-2~ python-django -- "$@"
+done
diff --git a/debian/python-django.preinst b/debian/python-django.preinst
new file mode 100644
index 0000000..ce78d82
--- /dev/null
+++ b/debian/python-django.preinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+#DEBHELPER#
+
+for X in app_template project_template
+do
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/python2.7/dist-packages/django/conf/${X} \
+ /usr/share/python-django-common/django/conf/${X} \
+ 1.9-2~ python-django -- "$@"
+done
diff --git a/debian/python3-django.postinst b/debian/python3-django.postinst
new file mode 100644
index 0000000..7341b0f
--- /dev/null
+++ b/debian/python3-django.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+#DEBHELPER#
+
+for X in app_template project_template
+do
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/python3/dist-packages/django/conf/${X} \
+ /usr/share/python-django-common/django/conf/${X} \
+ 1.9-2~ python3-django -- "$@"
+done
diff --git a/debian/python3-django.postrm b/debian/python3-django.postrm
new file mode 100644
index 0000000..7341b0f
--- /dev/null
+++ b/debian/python3-django.postrm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+#DEBHELPER#
+
+for X in app_template project_template
+do
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/python3/dist-packages/django/conf/${X} \
+ /usr/share/python-django-common/django/conf/${X} \
+ 1.9-2~ python3-django -- "$@"
+done
diff --git a/debian/python3-django.preinst b/debian/python3-django.preinst
new file mode 100644
index 0000000..7341b0f
--- /dev/null
+++ b/debian/python3-django.preinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+#DEBHELPER#
+
+for X in app_template project_template
+do
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/python3/dist-packages/django/conf/${X} \
+ /usr/share/python-django-common/django/conf/${X} \
+ 1.9-2~ python3-django -- "$@"
+done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-django.git
More information about the Python-modules-commits
mailing list