commit 868ca21754109304df609eb0bc2ba53656e21588
parent 9a873590ffbc4d03208bb89262105c89e52ca295
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Fri, 20 May 2016 23:20:47 +0000
SBO::Lib: document race condition in migrate_repo
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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 /);