Skip to content

Commit 9f19df6

Browse files
committed
Only copy the files when the VersionInfo can be loaded.
1 parent eee60e4 commit 9f19df6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/ConfigureApp.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,18 @@ BOOL ConfigureApp::createFiles(Options &options,WaitDialog &waitDialog) const
114114
waitDialog.nextStep(L"Cleaning up directories...");
115115
cleanupDirectories(options,waitDialog);
116116

117-
waitDialog.nextStep(L"Copying files...");
118-
copyFiles(options);
119-
120-
waitDialog.nextStep(L"Loading configuration files...");
121-
vector<Config> configs=Configs::load(options);
122-
123117
waitDialog.nextStep(L"Loading version information...");
124118
optional<VersionInfo> versionInfo=VersionInfo::load(options);
125119
if (versionInfo)
120+
{
121+
waitDialog.nextStep(L"Copying files...");
122+
copyFiles(options);
123+
126124
writeImageMagickFiles(options,*versionInfo,waitDialog);
125+
}
126+
127+
waitDialog.nextStep(L"Loading configuration files...");
128+
vector<Config> configs=Configs::load(options);
127129

128130
waitDialog.nextStep(L"Creating projects...");
129131
vector<Project> projects=Projects::create(options,configs);

0 commit comments

Comments
 (0)