def generate(self, project):
for assignment in self.s2n_mapping:<EOL><INDENT>if assignment["<STR_LIT>"] == project:<EOL><INDENT>self._name = assignment["<STR_LIT>"]<EOL>return self<EOL><DEDENT><DEDENT>name = project<EOL>if name.startswith("<STR_LIT>"):<EOL><INDENT>name = re.sub(r"<STR_LIT>", "<STR_LIT>", name)<EOL><DEDENT>if name.startswith("<STR_LIT>"):<EOL><INDENT>name = re.sub(r"<STR_LIT>", "<STR_LIT>", name)<EOL>name = re.sub(r"<STR_LIT>", "<STR_LIT>", name)<EOL>name = re.sub(r"<STR_LIT>", "<STR_LIT:/>", name)<EOL><DEDENT>if name.startswith("<STR_LIT>"):<EOL><INDENT>name = re.sub(r"<STR_LIT>", "<STR_LIT>", name)<EOL><DEDENT>if name.startswith("<STR_LIT>"):<EOL><INDENT>name = re.sub(r"<STR_LIT>", "<STR_LIT>", name)<EOL><DEDENT>if name.startswith("<STR_LIT>"):<EOL><INDENT>name = re.sub(r"<STR_LIT>", "<STR_LIT>", name)<EOL><DEDENT>if name.startswith("<STR_LIT>"):<EOL><INDENT>name = re.sub(r"<STR_LIT>", "<STR_LIT>", name)<EOL><DEDENT>if name.startswith("<STR_LIT>"):<EOL><INDENT>name = re.sub(r"<STR_LIT>", "<STR_LIT>", name)<EOL><DEDENT>if name.endswith("<STR_LIT>"):<EOL><INDENT>name = re.sub(r"<STR_LIT>", "<STR_LIT>", name)<EOL><DEDENT>name = name.replace("<STR_LIT:/>", "<STR_LIT:->")<EOL>self._name = "<STR_LIT>" % name<EOL>return self<EOL>
Package name construction is based on provider, not on prefix.
Prefix does not have to equal provider_prefix.