зеркало из https://github.com/mozilla/pjs.git
assert that verify dirs do not exist before starting verify b=413178 r=nthomas
This commit is contained in:
Родитель
62b7473441
Коммит
93772b309a
|
@ -78,6 +78,9 @@ sub Verify {
|
|||
# l10n metadiff test
|
||||
|
||||
my $verifyDirVersion = catfile($verifyDir, $product . '-' . $version);
|
||||
if (-e $verifyDirVersion) {
|
||||
die "ASSERT: Repack::Verify(): $verifyDirVersion already exists?";
|
||||
}
|
||||
|
||||
MkdirWithPath(dir => $verifyDirVersion)
|
||||
or die("Cannot mkdir $verifyDirVersion: $!");
|
||||
|
|
|
@ -137,6 +137,11 @@ sub Verify {
|
|||
|
||||
# Create verification area.
|
||||
my $verifyDirVersion = catfile($verifyDir, $product . '-' . $version);
|
||||
|
||||
if (-e $verifyDirVersion) {
|
||||
die "ASSERT: Updates::Verify(): $verifyDirVersion already exists?";
|
||||
}
|
||||
|
||||
MkdirWithPath(dir => $verifyDirVersion)
|
||||
or die("Could not mkdir $verifyDirVersion: $!");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче