1. Fix EDKT483 FrameworkWizard Should support multiple msa files in a same directory

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2081 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
hche10x 2006-12-11 06:09:30 +00:00
parent 4629ca40b7
commit 3cbeeeb8d7
2 changed files with 16 additions and 8 deletions

View File

@ -709,10 +709,16 @@ public class Clone extends IDialog {
Log.wrn("Clone", "The target module already exists!"); Log.wrn("Clone", "The target module already exists!");
return false; return false;
} }
if (GlobalData.isDuplicateRelativePath(Tools.getFilePathOnly(trg), mode)) {
Log.wrn("Clone", "There already exists a same directory with a module"); //
return false; // Check if path already exists
} // Currently we allow user to add multiple msa files in one same directory
// Remove this checkpoint
//
// if (GlobalData.isDuplicateRelativePath(Tools.getFilePathOnly(trg), mode)) {
// Log.wrn("Clone", "There already exists a same directory with a module");
// return false;
// }
return checkId(mode); return checkId(mode);
} }

View File

@ -540,11 +540,13 @@ public class SelectModuleBelong extends IDialog {
// //
// Check if path already exists // Check if path already exists
// Currently we allow user to add multiple msa files in one same directory
// Remove this checkpoint
// //
if (GlobalData.isDuplicateRelativePath(Tools.getFilePathOnly(modulePath), mode)) { // if (GlobalData.isDuplicateRelativePath(Tools.getFilePathOnly(modulePath), mode)) {
Log.wrn("New File", "There already exists a same directory with a module"); // Log.wrn("New File", "There already exists a same directory with a module");
return false; // return false;
} // }
// //
// Check if Guid+Version is unique // Check if Guid+Version is unique