From 868ca21754109304df609eb0bc2ba53656e21588 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Fri, 20 May 2016 23:20:47 +0000 Subject: SBO::Lib: document race condition in migrate_repo --- SBO-Lib/lib/SBO/Lib.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'SBO-Lib/lib/SBO/Lib.pm') 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 /); -- cgit v1.2.3