Allow dot in repo name. Dot was used before in Kurulan CD.

This commit is contained in:
Faik Uygur
2008-09-04 07:14:48 +00:00
parent 3ab7f94a71
commit 9b776f58c9
+1 -1
View File
@@ -581,7 +581,7 @@ def index(dirs=None, output='pisi-index.xml', skip_sources=False, skip_signing=F
ctx.ui.info(_('* Index file written'))
def add_repo(name, indexuri, at = None):
if not re.match("^[a-zA-Z0-9\\-\\_]*$", name):
if not re.match("^[a-zA-Z0-9\\-\\_\\.]*$", name):
raise pisi.Error(_('Not a valid repo name.'))
repodb = pisi.db.repodb.RepoDB()
if repodb.has_repo(name):