diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-20 23:20:47 +0000 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-05-20 23:20:47 +0000 |
commit | 868ca21754109304df609eb0bc2ba53656e21588 (patch) | |
tree | 14afdede8978dbc64c77240653f15fc89264fe58 /SBO-Lib/lib/SBO/Lib.pm | |
parent | 9a873590ffbc4d03208bb89262105c89e52ca295 (diff) | |
download | sbotools2-868ca21754109304df609eb0bc2ba53656e21588.tar.xz |
SBO::Lib: document race condition in migrate_repo
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index 9141ace..8bd7e37 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -266,6 +266,7 @@ sub indent { # Move everything in /usr/sbo except distfiles and repo dirs into repo dir sub migrate_repo { make_path($repo_path) unless -d $repo_path; + _race::cond '$repo_path can be deleted between being made and being used'; opendir(my $dh, $config{SBO_HOME}); foreach my $entry (readdir($dh)) { next if in($entry => qw/ . .. repo distfiles /); |