#!/bin/sh
set -e

# First do source of debconf
. /usr/share/debconf/confmodule

# First try to fix using 

# Copy the gpg to the chroot
cp /usr/share/casper-customize-mod-musica-kxstudio-repos/gpg/falktx.gpg /target/root/ || true
chroot /target apt-key add /root/falktx.gpg || true

cp /usr/share/casper-customize-mod-musica-kxstudio-repos/gpg/kxstudio-debian.gpg /target/root/ || true
chroot /target apt-key add /root/kxstudio-debian.gpg || true

cp /usr/share/casper-customize-mod-musica-kxstudio-repos/gpg/kxstudio_2BD84BD9.gpg /target/root/ || true
chroot /target apt-key  add /root/kxstudio_2BD84BD9.gpg || true


exit 0
