def valid_new_fmri(pfmri): """Check that the fmri supplied as an argument would be valid to add to the catalog. This checks to make sure that any past catalog operations (such as a rename or freeze) would not prohibit the caller from adding this FMRI.""" if not fmri.is_valid_pkg_name(pfmri.get_name()): return False return True
def valid_new_fmri(self, pfmri): """Check that the fmri supplied as an argument would be valid to add to the catalog. This checks to make sure that any past catalog operations (such as a rename or freeze) would not prohibit the caller from adding this FMRI.""" if not fmri.is_valid_pkg_name(pfmri.get_name()): return False return True