On Sat, 16 Jan 2016 21:51:28 +0100, Stephen Kitt <sk...@debian.org> wrote:
> On Sat, 16 Jan 2016 12:36:52 -0800, tony mancill <tmanc...@debian.org>
> wrote:
> > that sounds like a nice improvement, and an upload of jzip is long
> > overdue.  If you have a patch ready to go, please feel free to send
> > it/attach it to the bug.  Otherwise, I'll take a look and arrange for an
> > upload soon.  
> 
> Excellent, you'll find a patch attached.

Better yet, here's one that patches prerm too...

Regards,

Stephen
diff -urN jzip-210r20001005d.orig/debian/install jzip-210r20001005d/debian/install
--- jzip-210r20001005d.orig/debian/install	1970-01-01 01:00:00.000000000 +0100
+++ jzip-210r20001005d/debian/install	2016-01-16 21:46:23.038044361 +0100
@@ -0,0 +1 @@
+debian/jzip-launcher /usr/games
diff -urN jzip-210r20001005d.orig/debian/jzip-launcher jzip-210r20001005d/debian/jzip-launcher
--- jzip-210r20001005d.orig/debian/jzip-launcher	1970-01-01 01:00:00.000000000 +0100
+++ jzip-210r20001005d/debian/jzip-launcher	2016-01-16 21:48:40.241586431 +0100
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ -t 0 ]; then
+    jzip "$@"
+else
+    x-terminal-emulator -e jzip "$@"
+fi
diff -urN jzip-210r20001005d.orig/debian/jzip-launcher~ jzip-210r20001005d/debian/jzip-launcher~
--- jzip-210r20001005d.orig/debian/jzip-launcher~	1970-01-01 01:00:00.000000000 +0100
+++ jzip-210r20001005d/debian/jzip-launcher~	2016-01-16 21:42:57.504737273 +0100
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ -t 0 ]; then
+    jzip "$@"
+else
+    x-terminal-emulator -e "jzip $*"
+fi
diff -urN jzip-210r20001005d.orig/debian/postinst jzip-210r20001005d/debian/postinst
--- jzip-210r20001005d.orig/debian/postinst	2013-08-17 23:40:58.000000000 +0200
+++ jzip-210r20001005d/debian/postinst	2016-01-16 21:43:50.026093548 +0100
@@ -24,7 +24,7 @@
 
 case "$1" in
     configure)
-	update-alternatives --install /usr/games/zcode-interpreter zcode-interpreter /usr/games/jzip 50 --slave /usr/share/man/man6/zcode-interpreter.6.gz zcode-interpreter-man-gz /usr/share/man/man6/jzip.6.gz
+	update-alternatives --install /usr/games/zcode-interpreter zcode-interpreter /usr/games/jzip-launcher 50 --slave /usr/share/man/man6/zcode-interpreter.6.gz zcode-interpreter-man-gz /usr/share/man/man6/jzip.6.gz
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
diff -urN jzip-210r20001005d.orig/debian/prerm jzip-210r20001005d/debian/prerm
--- jzip-210r20001005d.orig/debian/prerm	2013-08-17 23:40:58.000000000 +0200
+++ jzip-210r20001005d/debian/prerm	2016-01-16 21:53:49.493568265 +0100
@@ -17,10 +17,10 @@
 
 case "$1" in
     remove|upgrade|deconfigure)
-	update-alternatives --remove zcode-interpreter /usr/games/jzip
+	update-alternatives --remove zcode-interpreter /usr/games/jzip-launcher
         ;;
     failed-upgrade)
-	update-alternatives --remove zcode-interpreter /usr/games/jzip
+	update-alternatives --remove zcode-interpreter /usr/games/jzip-launcher
         ;;
     *)
         echo "prerm called with unknown argument \`$1'" >&2

Attachment: pgpSrpMmTqOqV.pgp
Description: OpenPGP digital signature

Reply via email to