def METHOD_NAME(self):
    for pkg in (self.d.getVar("PACKAGES") 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)])
    self.d.renameVar("PACKAGES", "PACKAGES_NONML")
    self.d.setVar("PACKAGES", "${@oe.classextend.get_packages(d)}")