update showPackage to only show the package details if it is selected

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>