diff options
author | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-25 01:18:46 +0000 |
---|---|---|
committer | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-25 01:18:46 +0000 |
commit | 822d4f3a53a69dcbc1c9eaaf318a0d69d9b8de0e (patch) | |
tree | a44f67c691d948abb965e999165fe2f718b6eb72 /Tools/Python/WorkspaceRoutines.py | |
parent | e2cce12fd643b53d63d65e2dacad481f5197c296 (diff) | |
download | edk2-platforms-822d4f3a53a69dcbc1c9eaaf318a0d69d9b8de0e.tar.xz |
Adding a couple of features for far processing, including detecting duplicate files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2304 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Python/WorkspaceRoutines.py')
-rwxr-xr-x | Tools/Python/WorkspaceRoutines.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Tools/Python/WorkspaceRoutines.py b/Tools/Python/WorkspaceRoutines.py index f1f8be2b3c..c75cd57c52 100755 --- a/Tools/Python/WorkspaceRoutines.py +++ b/Tools/Python/WorkspaceRoutines.py @@ -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) |