[Python-modules-commits] [python-django] 01/01: Use debian/python-django.maintscript to avoid DRY violation

Chris Lamb lamby at moszumanska.debian.org
Mon Dec 14 12:23:28 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 53451ea9a748a85a70889f33a87b94b6b0e2a34f
Author: Chris Lamb <lamby at debian.org>
Date:   Mon Dec 14 12:19:07 2015 +0000

    Use debian/python-django.maintscript to avoid DRY violation
---
 debian/python-django.maintscript  |  2 ++
 debian/python-django.postinst     | 11 -----------
 debian/python-django.postrm       | 11 -----------
 debian/python-django.preinst      | 11 -----------
 debian/python3-django.maintscript |  2 ++
 debian/python3-django.postinst    | 11 -----------
 debian/python3-django.postrm      | 11 -----------
 debian/python3-django.preinst     | 11 -----------
 8 files changed, 4 insertions(+), 66 deletions(-)

diff --git a/debian/python-django.maintscript b/debian/python-django.maintscript
new file mode 100644
index 0000000..5fa6dbc
--- /dev/null
+++ b/debian/python-django.maintscript
@@ -0,0 +1,2 @@
+dir_to_symlink /usr/lib/python2.7/dist-packages/django/conf/app_template /usr/share/python-django-common/django/conf/app_template 1.9-2~ python-django
+dir_to_symlink /usr/lib/python2.7/dist-packages/django/conf/project_template /usr/share/python-django-common/django/conf/project_template 1.9-2~ python-django
diff --git a/debian/python-django.postinst b/debian/python-django.postinst
deleted file mode 100644
index ce78d82..0000000
--- a/debian/python-django.postinst
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/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
deleted file mode 100644
index ce78d82..0000000
--- a/debian/python-django.postrm
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/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
deleted file mode 100644
index ce78d82..0000000
--- a/debian/python-django.preinst
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/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.maintscript b/debian/python3-django.maintscript
new file mode 100644
index 0000000..b033892
--- /dev/null
+++ b/debian/python3-django.maintscript
@@ -0,0 +1,2 @@
+dir_to_symlink /usr/lib/python3/dist-packages/django/conf/app_template /usr/share/python-django-common/django/conf/app_template 1.9-2~ python3-django
+dir_to_symlink /usr/lib/python3/dist-packages/django/conf/project_template /usr/share/python-django-common/django/conf/project_template 1.9-2~ python3-django
diff --git a/debian/python3-django.postinst b/debian/python3-django.postinst
deleted file mode 100644
index 7341b0f..0000000
--- a/debian/python3-django.postinst
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/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
deleted file mode 100644
index 7341b0f..0000000
--- a/debian/python3-django.postrm
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/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
deleted file mode 100644
index 7341b0f..0000000
--- a/debian/python3-django.preinst
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/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