summaryrefslogtreecommitdiff
path: root/data/ste/_metadata
diff options
context:
space:
mode:
Diffstat (limited to 'data/ste/_metadata')
-rwxr-xr-xdata/ste/_metadata/extrainst_4
-rwxr-xr-xdata/ste/_metadata/postinst2
-rwxr-xr-xdata/ste/_metadata/prerm8
-rw-r--r--data/ste/_metadata/replaces1
4 files changed, 8 insertions, 7 deletions
diff --git a/data/ste/_metadata/extrainst_ b/data/ste/_metadata/extrainst_
new file mode 100755
index 000000000..eaede8332
--- /dev/null
+++ b/data/ste/_metadata/extrainst_
@@ -0,0 +1,4 @@
+#!/bin/sh
+if [[ $1 == install || $1 == upgrade ]]; then
+ /usr/bin/apt-key add /usr/share/keyrings/ste-keyring.gpg
+fi
diff --git a/data/ste/_metadata/postinst b/data/ste/_metadata/postinst
deleted file mode 100755
index 73c703b4f..000000000
--- a/data/ste/_metadata/postinst
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-/usr/bin/apt-key add /usr/share/keyrings/ste-keyring.gpg
diff --git a/data/ste/_metadata/prerm b/data/ste/_metadata/prerm
index a8f9ccc8a..22c5758e4 100755
--- a/data/ste/_metadata/prerm
+++ b/data/ste/_metadata/prerm
@@ -1,6 +1,4 @@
#!/bin/sh
-case "$1" in
- (remove|purge)
- /usr/bin/apt-key del 78A6D152
- ;;
-esac
+if [[ $1 == remove ]]; then
+ /usr/bin/apt-key del 78A6D152
+fi
diff --git a/data/ste/_metadata/replaces b/data/ste/_metadata/replaces
new file mode 100644
index 000000000..2e46ddf54
--- /dev/null
+++ b/data/ste/_metadata/replaces
@@ -0,0 +1 @@
+cydia (<< 1.0.2908-52)