names.add(name)
db_repos[name] = repo
- mapkey = repo['Project']
+ mapkey = "%s:%s" % (repo['Project'], repo['Target'])
mapkeys.add(mapkey)
db_obsrepomap[mapkey] = name
repos = bdb.get_repos()
maps = bdb.get_obs_repo_map()
self.assertEqual(repos.keys(), set(['Repo1', 'Repo2', 'Repo3']))
- self.assertEqual(maps.keys(), set(['Project:Repo1', 'Project:Repo2',
- 'Tizen:non-oss']))
- self.assertEqual(maps['Project:Repo1'], 'Repo1')
- self.assertEqual(maps['Project:Repo2'], 'Repo2')
- self.assertEqual(maps['Tizen:non-oss'], 'Repo3')
+ self.assertEqual(maps.keys(), set(['Project:Repo1:standard',
+ 'Project:Repo2:standard',
+ 'Tizen:non-oss:standard']))
+ self.assertEqual(maps['Project:Repo1:standard'], 'Repo1')
+ self.assertEqual(maps['Project:Repo2:standard'], 'Repo2')
+ self.assertEqual(maps['Tizen:non-oss:standard'], 'Repo3')
def test_repos_cleanup(self):
"""Set some repos and see if they'll be cleaned up by read_repos."""