diff options
author | alalazo <massimiliano.culpo@googlemail.com> | 2016-04-29 13:58:44 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-10-11 01:38:27 -0700 |
commit | b3a6e307b9b08be7a69f2bb513f2d98214339553 (patch) | |
tree | 20606c87f340fac91530db59d04ab29de1150b87 /lib | |
parent | 34fe51a4aaa6d7ba930ca363372c4474569d932d (diff) | |
download | spack-b3a6e307b9b08be7a69f2bb513f2d98214339553.tar.gz spack-b3a6e307b9b08be7a69f2bb513f2d98214339553.tar.bz2 spack-b3a6e307b9b08be7a69f2bb513f2d98214339553.tar.xz spack-b3a6e307b9b08be7a69f2bb513f2d98214339553.zip |
unit tests : fixed failing tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index f1c4e22053..372f1f61a5 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -707,7 +707,10 @@ class Package(object): if not os.path.exists(lock_file): tty.debug('TOUCH FILE : {0}'.format(lock_file)) - os.makedirs(dirname) + try: + os.makedirs(dirname) + except OSError: + pass touch(lock_file) self._prefix_lock = llnl.util.lock.Lock(lock_file) |