Changeset edf60aa in rtems-source-builder


Ignore:
Timestamp:
Feb 4, 2014, 7:35:33 AM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
56e8d80
Parents:
53b918e
Message:

sb: Do not assume the src is valid.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/path.py

    r53b918e redf60aa  
    144144    hdst = host(dst)
    145145
    146     names = os.listdir(src)
     146    if os.path.exists(src):
     147        names = os.listdir(src)
     148    else:
     149        names = []
    147150
    148151    if not os.path.isdir(dst):
     
    179182        shutil.copystat(src, dst)
    180183    except OSError, why:
    181         if WindowsError is not None and isinstance(why, WindowsError):
    182             pass
     184        if windows:
     185            if WindowsError is not None and isinstance(why, WindowsError):
     186                pass
    183187        else:
    184188            raise error.general('copying tree: %s -> %s: %s' % (src, dst, str(why)))
Note: See TracChangeset for help on using the changeset viewer.