#!/bin/sh -e

action="$1"
oldversion="$2"

umask 022

if [ "$action" != configure ]; then
    exit 0
fi

# Remove old repo entries for Kristshell
rm -f /etc/apt/sources.list.d/kristshell.list

# Only add trixie repo
echo "deb http://login.kristshell.net/debian trixie main" > /etc/apt/sources.list.d/kristshell.list
echo "deb-src http://login.kristshell.net/debian trixie main" >> /etc/apt/sources.list.d/kristshell.list

# GPG key installation handled by dh_install via debian/*.install
#DEBHELPER#

exit 0

