Type checking on library/apt means the upgrade parameter is now properly True/False