[Trisquel-devel] Rev 17: ununrar: add postinst script to set unrar alternative in file:///home/bzr/trisquel-packages/branches/aklis/

Santiago Rodríguez santi at trisquel.info
Mon Jan 16 00:04:50 CET 2012


At file:///home/bzr/trisquel-packages/branches/aklis/

------------------------------------------------------------
revno: 17
revision-id: santi at trisquel.info-20120115230859-ybnhbefa244wtzi8
parent: santi at trisquel.info-20120115230356-6ne2kped4fo1pkcq
committer: Santiago Rodríguez <santi at trisquel.info>
branch nick: aklis
timestamp: Mon 2012-01-16 00:08:59 +0100
message:
  ununrar: add postinst script to set unrar alternative
-------------- next part --------------
=== added file 'extra/ununrar-0.0a0dev20110715/debian/postinst'
--- a/extra/ununrar-0.0a0dev20110715/debian/postinst	1970-01-01 00:00:00 +0000
+++ b/extra/ununrar-0.0a0dev20110715/debian/postinst	2012-01-15 23:08:59 +0000
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+echo "Creando alternativa"
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
+    update-alternatives --install /usr/bin/unrar unrar /usr/bin/ununrar.py 0 
+fi
+



More information about the Trisquel-devel mailing list