Mercurial > hg > soundsoftware-site
comparison extra/soundsoftware/convert-external-repos.rb @ 1445:0c7b3bb73517 live
Fix underscores in idents (and make regex the same in both places it's used)
author | Chris Cannam |
---|---|
date | Tue, 22 Oct 2013 10:56:02 +0100 |
parents | b61a51fb42b9 |
children |
comparison
equal
deleted
inserted
replaced
1444:e2485421fc14 | 1445:0c7b3bb73517 |
---|---|
144 log("treating project #{project.name}", :level => 1) | 144 log("treating project #{project.name}", :level => 1) |
145 | 145 |
146 if project.identifier.empty? | 146 if project.identifier.empty? |
147 log("\tno identifier for project #{project.name}") | 147 log("\tno identifier for project #{project.name}") |
148 next | 148 next |
149 elsif not project.identifier.match(/^[a-z0-9\-]+$/) | 149 elsif not project.identifier.match(/^[a-z0-9_\-]+$/) |
150 log("\tinvalid identifier for project #{project.name} : #{project.identifier}"); | 150 log("\tinvalid identifier for project #{project.name} : #{project.identifier}"); |
151 next | 151 next |
152 end | 152 end |
153 | 153 |
154 if !project.respond_to?(:repository) or !project.repository.is_external? | 154 if !project.respond_to?(:repository) or !project.repository.is_external? |