def METHOD_NAME(self, variables):
    for pkg_mapping in self.pkgs_mapping:
        if pkg_mapping[0].startswith("${") and pkg_mapping[0].endswith("}"):
            continue
        for subs in variables:
            self.d.renameVar("%s:%s" % (subs, pkg_mapping[0]), "%s:%s" % (subs, pkg_mapping[1]))