#! /bin/bash

exec >&3

files_in_usrlocal() {
    [ ! -d /usr/local/share/request-tracker5/ ] || [ `find /usr/local/share/request-tracker5/ -type f | wc -l` -gt 0 ] && echo -e "\nThere are locally modified files in /usr/local/share/request-tracker5/,\n these may (or may not) be the source of the problem.\n"
}

echo "Changed files:"
dpkg --verify --verify-format rpm request-tracker5 | awk '{ print "  " $2 }'

files_in_usrlocal || true
