Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 256953 | Differences between
and this patch

Collapse All | Expand All

(-)Lib/compileall.py (-1 / +2 lines)
Lines 55-61 Link Here
55
            head, tail = name[:-3], name[-3:]
55
            head, tail = name[:-3], name[-3:]
56
            if tail == '.py':
56
            if tail == '.py':
57
                cfile = fullname + (__debug__ and 'c' or 'o')
57
                cfile = fullname + (__debug__ and 'c' or 'o')
58
                ftime = os.stat(fullname).st_mtime
58
                fstat = os.stat(fullname)
59
                ftime = max(fstat.st_mtime, fstat.st_ctime)
59
                try: ctime = os.stat(cfile).st_mtime
60
                try: ctime = os.stat(cfile).st_mtime
60
                except os.error: ctime = 0
61
                except os.error: ctime = 0
61
                if (ctime > ftime) and not force: continue
62
                if (ctime > ftime) and not force: continue

Return to bug 256953