continue
inforoot=normpath(root+z)
if os.path.isdir(inforoot):
- infomtime = os.stat(inforoot).st_mtime
+ infomtime = long(os.stat(inforoot).st_mtime)
if inforoot not in prev_mtimes or \
prev_mtimes[inforoot] != infomtime:
regen_infodirs.append(inforoot)
icount=icount+1
#update mtime so we can potentially avoid regenerating.
- prev_mtimes[inforoot] = os.stat(inforoot).st_mtime
+ prev_mtimes[inforoot] = long(os.stat(inforoot).st_mtime)
if badcount:
print " "+yellow("*")+" Processed",icount,"info files;",badcount,"errors."
raise KeyError(cpv)
raise cache_errors.CacheCorruption(cpv, e)
- try: d["_mtime_"] = os.fstat(myf.fileno()).st_mtime
+ try:
+ d["_mtime_"] = long(os.fstat(myf.fileno()).st_mtime)
except OSError, e:
myf.close()
raise cache_errors.CacheCorruption(cpv, e)
continue
for y in [y for y in os.listdir(x) if y.endswith(".eclass")]:
try:
- mtime=os.stat(x+"/"+y).st_mtime
+ mtime = long(os.stat(os.path.join(x, y)).st_mtime)
except OSError:
continue
ys=y[:-eclass_len]
if len(errors) == 0:
# Update our internal mtime since we
# processed all of our directives.
- timestamps[mykey] = mystat.st_mtime
+ timestamps[mykey] = long(mystat.st_mtime)
else:
for msg in errors:
writemsg("%s\n" % msg, noiselevel=-1)
file_path = os.path.join(updpath, myfile)
mystat = os.stat(file_path)
if file_path not in prev_mtimes or \
- prev_mtimes[file_path] != mystat.st_mtime:
+ long(prev_mtimes[file_path]) != long(mystat.st_mtime):
f = open(file_path)
content = f.read()
f.close()