try:
mydat[1]=os.path.normpath(root+mydat[1][1:])
if mydat[0]=="obj":
#format: type, mtime, md5sum
if len(mydat) >= 4:
pkgfiles[string.join(mydat[1:-2]," ")]=[mydat[0], mydat[-1], mydat[-2]]
elif mydat[0]=="dir":
#format: type
pkgfiles[string.join(mydat[1:])]=[mydat[0] ]