[ffc] 01/01: assign higher priority to python2 ufc.h alternative

Drew Parsons dparsons at moszumanska.debian.org
Thu Jun 8 05:04:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

dparsons pushed a commit to branch master
in repository ffc.

commit 71d8863f7e449dfadcbaa7ed9fb00e9222209ba3
Author: Drew Parsons <dparsons at debian.org>
Date:   Thu Jun 8 13:02:01 2017 +0800

    assign higher priority to python2 ufc.h alternative
    
    The ufc.h provided by python2 and python3 modules is the same file, so
    it doesn't matter which one gets priority.
    
    But it might look odd if the symlink switches randomly from python2 to
    python3 depending on which one was last upgraded.
    
    So assign priority to python2 (python-ffc) to stabilise the default
    alternative.
---
 debian/python-ffc.postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/python-ffc.postinst b/debian/python-ffc.postinst
index 8f215cd..d408eee 100644
--- a/debian/python-ffc.postinst
+++ b/debian/python-ffc.postinst
@@ -5,7 +5,7 @@ UFC_INCLUDE_DIR=__PYTHON_UFC_DIR__
 # Make alternatives links
 if [ "$1" = "configure" ]; then
   # alternative ufc.h
-  update-alternatives --install /usr/include/ufc.h ufc.h ${UFC_INCLUDE_DIR}/ufc.h 100
+  update-alternatives --install /usr/include/ufc.h ufc.h ${UFC_INCLUDE_DIR}/ufc.h 150
 fi
 
 #DEBHELPER#

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/fenics/ffc.git



More information about the debian-science-commits mailing list