From d769504d1c7b09c704a65d5d4ea302106ba8b185 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Fri, 6 Oct 2017 11:59:09 -0700 Subject: [PATCH] =?UTF-8?q?Stop=20installing=20apt.getmailspring.com=20on?= =?UTF-8?q?=20Debian=E2=80=94it=20will=20not=20exist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build/resources/linux/debian/postinst | 131 +--------------------- 1 file changed, 1 insertion(+), 130 deletions(-) diff --git a/app/build/resources/linux/debian/postinst b/app/build/resources/linux/debian/postinst index 2faf4359d..2d91ba285 100755 --- a/app/build/resources/linux/debian/postinst +++ b/app/build/resources/linux/debian/postinst @@ -15,139 +15,10 @@ # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package -UBUNTU_CODENAMES="precise trusty utopic vivid" # "xenial is not yet available in mailspring repos." -DEBIAN_CODENAMES="squeeze wheezy jessie sid" - case "$1" in configure) gtk-update-icon-cache /usr/share/icons/hicolor > /dev/null 2>&1 - - DISTRO=`lsb_release -s -i` - DISTRO_UPSTREAM=`lsb_release -s -i -u || true` - - if [ "$DISTRO" = "Ubuntu" ] || [ "$DISTRO_UPSTREAM" = "Ubuntu" ]; then - DISTS=$UBUNTU_CODENAMES - DISTRO="ubuntu" - elif [ "$DISTRO" = "Debian" ]; then - DISTS=$DEBIAN_CODENAMES - DISTRO="debian" - else - echo "You are not running Debian, Ubuntu, or an Ubuntu derivative. Not adding mailspring repository." - DISTRO="" - fi - - if [ -n "$DISTRO" ]; then - # Add the mailspring repository. - # Copyright (c) 2009 The Chromium Authors. All rights reserved. - # Use of this source code is governed by a BSD-style license. - - # Install the repository signing key - install_key() { - APT_KEY="`which apt-key 2> /dev/null`" - if [ -x "$APT_KEY" ]; then - "$APT_KEY" add - >/dev/null 2>&1 </dev/null | cut -d ':' -f 1) - if [ -n "$SOURCELIST" ]; then - return 0 - fi - - printf "$REPOCONFIG\n" > "$APT_SOURCESDIR/mailspring.list" - if [ $? -eq 0 ]; then - return 1 - fi - fi - return 2 - } - - install_key - update_sources_lists - - fi - ;; + ;; abort-upgrade|abort-remove|abort-deconfigure) ;;