aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-20 23:20:47 +0000
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-05-20 23:20:47 +0000
commit868ca21754109304df609eb0bc2ba53656e21588 (patch)
tree14afdede8978dbc64c77240653f15fc89264fe58
parent9a873590ffbc4d03208bb89262105c89e52ca295 (diff)
downloadsbotools2-868ca21754109304df609eb0bc2ba53656e21588.tar.xz
SBO::Lib: document race condition in migrate_repo
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm1
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 /);