]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Python/WorkspaceRoutines.py
Adding a couple of features for far processing, including detecting duplicate files.
[mirror_edk2.git] / Tools / Python / WorkspaceRoutines.py
index f1f8be2b3ca6aa2fababe0dda3efea01bfca1b9c..c75cd57c524c753ee0cc29cce11199ddec1c412d 100755 (executable)
@@ -27,7 +27,7 @@ def genguid():
         getpass.getuser() + 
         str(time.time()) + 
         socket.gethostbyname(socket.gethostname())).hexdigest()
-  return "%s-%s-%s-%s-%s" % (g[0:8], g[8:12], g[12:16], g[16:20], g[20:])
+  return Guid("%s-%s-%s-%s-%s" % (g[0:8], g[8:12], g[12:16], g[16:20], g[20:]))
 
 def lean(path):
   """Lean the slashes forward"""
@@ -56,5 +56,6 @@ def Md5(filename):
 
   return sum
 
-
-
+def Guid(guidString):
+  """Convert the guid string into a canonical form suitable for comparison."""
+  return string.lower(guidString)