[Python-modules-commits] [flask] 01/01: Install /usr/bin/flask CLI only to python3-flask package
Ondřej Nový
onovy at moszumanska.debian.org
Tue Jul 19 19:26:30 UTC 2016
This is an automated email from the git hooks/post-receive script.
onovy pushed a commit to branch master
in repository flask.
commit 5161a0fc51a7bdea304835611c575d866568adef
Author: Ondřej Nový <onovy at debian.org>
Date: Tue Jul 19 21:25:45 2016 +0200
Install /usr/bin/flask CLI only to python3-flask package
---
debian/changelog | 2 +-
debian/python-flask.postinst | 11 -----------
debian/python-flask.prerm | 11 -----------
debian/python3-flask.postinst | 11 -----------
debian/python3-flask.prerm | 11 -----------
debian/rules | 3 +--
6 files changed, 2 insertions(+), 47 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1d56eae..5702093 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,7 +21,7 @@ flask (0.11.1-1) UNRELEASED; urgency=medium
* Bumped required version of dh-python to 2.20160609~
* Added /usr/share/doc/python-flask-doc/rst symlink
* Removed override_dh_auto_clean and override_dh_python3 (not needed)
- * Use update-alternatives for /usr/bin/flask CLI
+ * Install /usr/bin/flask CLI only to python3-flask package
* Make python-flask and python3-flask descriptions distinct
* Removed all pre-wheezy version compare from dependency
* Removed python-simplejson from build-depends/recommends
diff --git a/debian/python-flask.postinst b/debian/python-flask.postinst
deleted file mode 100644
index 15cfd4b..0000000
--- a/debian/python-flask.postinst
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [ "$1" = "configure" ] ; then
- update-alternatives --install /usr/bin/flask flask /usr/bin/python2-flask 100
-fi
-
-#DEBHELPER#
-
-exit 0
diff --git a/debian/python-flask.prerm b/debian/python-flask.prerm
deleted file mode 100644
index a5fb3d2..0000000
--- a/debian/python-flask.prerm
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
- update-alternatives --remove flask /usr/bin/python2-flask
-fi
-
-#DEBHELPER#
-
-exit 0
diff --git a/debian/python3-flask.postinst b/debian/python3-flask.postinst
deleted file mode 100644
index ca1fb89..0000000
--- a/debian/python3-flask.postinst
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [ "$1" = "configure" ] ; then
- update-alternatives --install /usr/bin/flask flask /usr/bin/python3-flask 200
-fi
-
-#DEBHELPER#
-
-exit 0
diff --git a/debian/python3-flask.prerm b/debian/python3-flask.prerm
deleted file mode 100644
index fdd094a..0000000
--- a/debian/python3-flask.prerm
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
- update-alternatives --remove flask /usr/bin/python3-flask
-fi
-
-#DEBHELPER#
-
-exit 0
diff --git a/debian/rules b/debian/rules
index 799e33f..add7ade 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,8 +11,7 @@ override_dh_auto_test:
override_dh_install:
dh_install
- mv $(CURDIR)/debian/python-flask/usr/bin/flask $(CURDIR)/debian/python-flask/usr/bin/python2-flask
- mv $(CURDIR)/debian/python3-flask/usr/bin/flask $(CURDIR)/debian/python3-flask/usr/bin/python3-flask
+ rm $(CURDIR)/debian/python-flask/usr/bin/flask
override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/flask.git
More information about the Python-modules-commits
mailing list