pkgfuncs.inc.php: Fix blacklisting functionality