Changeset eebad5f in rtems


Ignore:
Timestamp:
Oct 28, 2020, 5:36:28 AM (4 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
6823943
Parents:
b052e3a
git-author:
Sebastian Huber <sebastian.huber@…> (10/28/20 05:36:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/28/20 06:33:38)
Message:

build: Improve cache handling

Check the directory modification time to notice file removals.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    rb052e3a reebad5f  
    10911091def is_one_item_newer(ctx, path, mtime):
    10921092    try:
     1093        mtime2 = os.path.getmtime(path)
     1094        if mtime <= mtime2:
     1095            return True
    10931096        names = os.listdir(path)
    10941097    except Exception as e:
    1095         ctx.fatal("Cannot list build specification directory: {}".format(e))
     1098        ctx.fatal("Cannot access build specification directory: {}".format(e))
    10961099    for name in names:
    10971100        path2 = os.path.join(path, name)
Note: See TracChangeset for help on using the changeset viewer.