Changes in tools/mkfat.py [042fbe0:432f68a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/mkfat.py
r042fbe0 r432f68a 190 190 parts = name.split('.') 191 191 192 if len(parts) > 0:192 if (len(parts) > 0): 193 193 fname = parts[0] 194 194 else: 195 195 fname = '' 196 197 if len(fname) > 8: 198 sys.stdout.write("mkfat.py: error: Directory entry " + name + 199 " base name is longer than 8 characters\n") 200 sys.exit(1); 201 196 202 197 return (fname + ' ').upper()[0:8] 203 198 … … 206 201 parts = name.split('.') 207 202 208 if len(parts) > 1:203 if (len(parts) > 1): 209 204 ext = parts[1] 210 205 else: 211 206 ext = '' 212 213 if len(parts) > 2:214 sys.stdout.write("mkfat.py: error: Directory entry " + name +215 " has more than one extension\n")216 sys.exit(1);217 218 if len(ext) > 3:219 sys.stdout.write("mkfat.py: error: Directory entry " + name +220 " extension is longer than 3 characters\n")221 sys.exit(1);222 207 223 208 return (ext + ' ').upper()[0:3]
Note:
See TracChangeset
for help on using the changeset viewer.