summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0757248)
# Commandline options
opt_dryrun = False
# Commandline options
opt_dryrun = False
(".fw", re.compile(r".*\.fw")),
(".arm", re.compile(r".*\.arm")),
(".bin", re.compile(r".*\.bin")),
(".fw", re.compile(r".*\.fw")),
(".arm", re.compile(r".*\.arm")),
(".bin", re.compile(r".*\.bin")),
- ("rt-firmware", re.compile(r"RT\d+_Firmware.*")),
+ ("rt-firmware", re.compile(r"RT[\d\w]+_Firmware.*")),
]
class EntryParseError(Exception): pass
]
class EntryParseError(Exception): pass
filename = filename[0:0-len(ext)]
break
else:
filename = filename[0:0-len(ext)]
break
else:
- if DEBUG:
- print "Extension did not match on", filename
+ print self.filename, "has an unknown file-extension"
raise EntryParseError("ext")
for (regex, parseVersion) in versionRegex:
match = regex.match(filename)
raise EntryParseError("ext")
for (regex, parseVersion) in versionRegex:
match = regex.match(filename)
(self.progname, self.version) = parseVersion(match)
break
else:
(self.progname, self.version) = parseVersion(match)
break
else:
- if DEBUG:
- print "Version regex did not match on", filename
+ print self.filename, "has an unknown version pattern"
raise EntryParseError("ver")
def deleteFile(self):
raise EntryParseError("ver")
def deleteFile(self):