Show More
@@ -50,19 +50,17 b' class localrepository(repo.repository):' | |||||
50 | raise repo.RepoError(_("repository %s already exists") % path) |
|
50 | raise repo.RepoError(_("repository %s already exists") % path) | |
51 | else: |
|
51 | else: | |
52 | # find requirements |
|
52 | # find requirements | |
|
53 | requirements = [] | |||
53 | try: |
|
54 | try: | |
54 | requirements = self.opener("requires").read().splitlines() |
|
55 | requirements = self.opener("requires").read().splitlines() | |
|
56 | for r in requirements: | |||
|
57 | if r not in self.supported: | |||
|
58 | raise repo.RepoError(_("requirement '%s' not supported") % r) | |||
55 | except IOError, inst: |
|
59 | except IOError, inst: | |
56 | if inst.errno != errno.ENOENT: |
|
60 | if inst.errno != errno.ENOENT: | |
57 | raise |
|
61 | raise | |
58 | requirements = [] |
|
|||
59 | # check them |
|
|||
60 | for r in requirements: |
|
|||
61 | if r not in self.supported: |
|
|||
62 | raise repo.RepoError(_("requirement '%s' not supported") % r) |
|
|||
63 |
|
62 | |||
64 | self.store = store.store(requirements, self.path) |
|
63 | self.store = store.store(requirements, self.path) | |
65 |
|
||||
66 | self.spath = self.store.path |
|
64 | self.spath = self.store.path | |
67 | self.sopener = self.store.opener |
|
65 | self.sopener = self.store.opener | |
68 | self.sjoin = self.store.join |
|
66 | self.sjoin = self.store.join |
General Comments 0
You need to be logged in to leave comments.
Login now