[Debian-on-mobile-maintainers] [Git][DebianOnMobile-team/gnome-console][debian/master] 2 commits: Add debian/postinst & debian/prerm to register kgx

Arnaud Ferraris (@a-wai) gitlab at salsa.debian.org
Tue Aug 9 13:51:32 BST 2022



Arnaud Ferraris pushed to branch debian/master at Debian On Mobile / gnome-console


Commits:
e9cbf257 by Jeremy Bicha at 2022-08-09T08:39:51-04:00
Add debian/postinst & debian/prerm to register kgx

as an x-terminal-emulator with priority 40

Closes: #1008805
LP: #1977767

Gbp-Dch: Full

- - - - -
66299436 by James Tocknell at 2022-08-09T08:40:01-04:00
Add x-terminal-emulator to provides

- - - - -


3 changed files:

- debian/control
- + debian/postinst
- + debian/prerm


Changes:

=====================================
debian/control
=====================================
@@ -31,6 +31,7 @@ Depends:
  ${shlibs:Depends},
  gsettings-desktop-schemas (>= 0.1.0),
 Recommends: nautilus-extension-gnome-console
+Provides: x-terminal-emulator
 Replaces: kgx (<< 42~beta~)
 Breaks: kgx (<< 42~beta~)
 Description: Simple user-friendly terminal emulator for the GNOME desktop


=====================================
debian/postinst
=====================================
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "configure" ]; then
+	update-alternatives --install /usr/bin/x-terminal-emulator \
+		x-terminal-emulator /usr/bin/kgx 40 \
+		--slave /usr/share/man/man1/x-terminal-emulator.1.gz \
+		x-terminal-emulator.1.gz /usr/share/man/man1/kgx.1.gz
+fi


=====================================
debian/prerm
=====================================
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "remove" ]; then
+	update-alternatives --remove x-terminal-emulator /usr/bin/kgx
+fi



View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/gnome-console/-/compare/06156a66d9799873e3235004b60cbd86f59e0a63...6629943623e67a70af2434e6b5a7abce1cd26c37

-- 
View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/gnome-console/-/compare/06156a66d9799873e3235004b60cbd86f59e0a63...6629943623e67a70af2434e6b5a7abce1cd26c37
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-on-mobile-maintainers/attachments/20220809/67773077/attachment-0001.htm>


More information about the Debian-on-mobile-maintainers mailing list