[Pkg-haskell-commits] darcs: yi: add alternatives and fix section

Louis Bettens louis at bettens.info
Tue Mar 18 17:49:51 UTC 2014


Tue Mar 18 17:24:00 UTC 2014  Louis Bettens <louis at bettens.info>
  * add alternatives and fix section

    M ./changelog -1 +3
    M ./control -1 +1
    A ./yi.postinst
    A ./yi.prerm

Tue Mar 18 17:24:00 UTC 2014  Louis Bettens <louis at bettens.info>
  * add alternatives and fix section
diff -rN -u old-yi/changelog new-yi/changelog
--- old-yi/changelog	2014-03-18 17:49:51.272707952 +0000
+++ new-yi/changelog	2014-03-18 17:49:51.272707952 +0000
@@ -2,8 +2,10 @@
 
   [ Marcel Fourné ]
   * New upstream version (Closes: #741725)
+  * Let yi be an alternative for /usr/bin/editor (Closes: #741856)
+  * Changed section from misc to editor
 
- -- Louis Bettens <louis at bettens.info>  Tue, 18 Mar 2014 18:01:20 +0100
+ -- Louis Bettens <louis at bettens.info>  Tue, 18 Mar 2014 18:13:20 +0100
 
 yi (0.7.0-1) unstable; urgency=low
 
diff -rN -u old-yi/control new-yi/control
--- old-yi/control	2014-03-18 17:49:51.272707952 +0000
+++ new-yi/control	2014-03-18 17:49:51.272707952 +0000
@@ -161,7 +161,7 @@
 
 Package: yi
 Architecture: any
-Section: misc
+Section: editors
 Depends: ${shlibs:Depends}, ${haskell:Depends}, ${misc:Depends}
          , libghc-yi-dev, libghc-yi-doc
 Description: Haskell-Scriptable Editor
diff -rN -u old-yi/yi.postinst new-yi/yi.postinst
--- old-yi/yi.postinst	1970-01-01 00:00:00.000000000 +0000
+++ new-yi/yi.postinst	2014-03-18 17:49:51.276707956 +0000
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+update-alternatives --install /usr/bin/editor editor /usr/bin/yi 30 \
+     --slave /usr/share/man/man1/editor.1.gz editor.1.gz /usr/share/man/man1/yi.1.gz
+
+#DEBHELPER#
+
+exit 0
diff -rN -u old-yi/yi.prerm new-yi/yi.prerm
--- old-yi/yi.prerm	1970-01-01 00:00:00.000000000 +0000
+++ new-yi/yi.prerm	2014-03-18 17:49:51.276707956 +0000
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]
+then
+  update-alternatives --remove editor /usr/bin/yi
+fi
+
+#DEBHELPER#
+
+exit 0




More information about the Pkg-haskell-commits mailing list