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
This commit is contained in:
bbahnsen
2007-01-25 01:18:46 +00:00
parent e2cce12fd6
commit 822d4f3a53
3 changed files with 43 additions and 24 deletions

View File

@ -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)