ore improvements in wmlmove, update wmllint for 1.3.6.

This commit is contained in:
Eric S. Raymond 2007-07-22 12:45:11 +00:00
parent d9eacc1a65
commit 00cc2148a3
3 changed files with 7 additions and 4 deletions

View file

@ -287,11 +287,11 @@ class CrossRef:
def scopelist():
"Return a list of (separate) package scopes, core first."
return map(os.path.basename, ["data/core"] + glob.glob("data/campaigns/*"))
return ["data/core"] + glob.glob("data/campaigns/*")
def is_namespace(name):
"Is the name either a valid campaign name or core?"
return name in scopelist()
return name in map(os.path.basename, scopelist())
def namespace_directory(name):
"Go from namespace to directory."

View file

@ -244,9 +244,12 @@ filemoves = {
("colour=8", "colour=white"),
("colour=9", "colour=teal"),
),
"1.3.5" : (), # This was an aborted release
# An empty sentinel value at end is required.
# Always have the current version here.
"1.3.5" : ()
"1.3.5" : (
("Soul Shooter", "Aptrgangr")
)
}
# Turn all the filemove string substition pairs into nearly equivalent

View file

@ -90,7 +90,7 @@ if __name__ == "__main__":
sys.exit(1)
if listspaces:
print " ".join(scopelist())
print " ".join(map(os.path.basename, scopelist()))
sys.exit(0)
# Locate the unit .cfgs to be moved.