This function doesn't make any sense. Most things that expect package names expect package names for *one specific package manager*. It only happens to work, most of the time, because most people only have one package manager installed.