def METHOD_NAME(self, pkgs):
    self.pkgs_mapping = []
    for pkg in (self.d.expand(pkgs) or "").split():
        if pkg.startswith(self.extname):
           self.pkgs_mapping.append([pkg.split(self.extname + "-")[1], pkg])
           continue
        self.pkgs_mapping.append([pkg, self.extend_name(pkg)])
    return " ".join([row[1] for row in self.pkgs_mapping])