BaseTools:Update mailing list address in BaseTools error messages
authorFan, ZhijuX <zhijux.fan@intel.com>
Tue, 21 May 2019 02:06:52 +0000 (10:06 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Wed, 22 May 2019 01:15:55 +0000 (09:15 +0800)
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1815

The edk2 source tree contains four instances of the outdated mailing
list address "edk2-devel@lists.01.org".
I created a new variable, MSG_EDKII_MAIL_ADDR, to receive the
new email address and replaced the old one with this variable

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/Common/DataType.py
BaseTools/Source/Python/GenFds/GenFds.py
BaseTools/Source/Python/Trim/Trim.py
BaseTools/Source/Python/UPT/InstallPkg.py
BaseTools/Source/Python/UPT/InventoryWs.py
BaseTools/Source/Python/UPT/Logger/StringTable.py
BaseTools/Source/Python/UPT/MkPkg.py
BaseTools/Source/Python/UPT/ReplacePkg.py
BaseTools/Source/Python/UPT/RmPkg.py
BaseTools/Source/Python/UPT/TestInstall.py
BaseTools/Source/Python/build/build.py

index 780711b..7cd67bc 100644 (file)
@@ -88,6 +88,7 @@ EDK_COMPONENT_TYPE_SAL_RT_DRIVER = 'SAL_RT_DRIVER'
 EDK_COMPONENT_TYPE_APPLICATION = 'APPLICATION'\r
 EDK_NAME = 'EDK'\r
 EDKII_NAME = 'EDKII'\r
+MSG_EDKII_MAIL_ADDR = 'devel@edk2.groups.io'\r
 \r
 COMPONENT_TO_MODULE_MAP_DICT = {\r
     EDK_COMPONENT_TYPE_LIBRARY               :   SUP_MODULE_BASE,\r
index 21ae9c4..5888997 100644 (file)
@@ -388,7 +388,7 @@ def GenFdsApi(FdsCommandDict, WorkSpaceDataBase=None):
                     "\nPython",\r
                     CODE_ERROR,\r
                     "Tools code failure",\r
-                    ExtraData="Please send email to edk2-devel@lists.01.org for help, attaching following call stack trace!\n",\r
+                    ExtraData="Please send email to %s for help, attaching following call stack trace!\n" % MSG_EDKII_MAIL_ADDR,\r
                     RaiseError=False\r
                     )\r
         EdkLogger.quiet(traceback.format_exc())\r
index 6f29f1a..43119bd 100644 (file)
@@ -533,7 +533,7 @@ def Main():
                     "\nTrim",\r
                     CODE_ERROR,\r
                     "Unknown fatal error when trimming [%s]" % InputFile,\r
-                    ExtraData="\n(Please send email to edk2-devel@lists.01.org for help, attaching following call stack trace!)\n",\r
+                    ExtraData="\n(Please send email to %s for help, attaching following call stack trace!)\n" % MSG_EDKII_MAIL_ADDR,\r
                     RaiseError=False\r
                     )\r
         EdkLogger.quiet("(Python %s on %s) " % (platform.python_version(), sys.platform) + traceback.format_exc())\r
index 6cb9f25..e4c7565 100644 (file)
@@ -547,7 +547,7 @@ def Main(Options = None):
                     "\nInstallPkg",\r
                     CODE_ERROR,\r
                     ST.ERR_UNKNOWN_FATAL_INSTALL_ERR % Options.PackageFile,\r
-                    ExtraData=ST.MSG_SEARCH_FOR_HELP,\r
+                    ExtraData=ST.MSG_SEARCH_FOR_HELP % ST.MSG_EDKII_MAIL_ADDR,\r
                     RaiseError=False\r
                     )\r
         Logger.Quiet(ST.MSG_PYTHON_ON % (python_version(),\r
index 778c139..955b2e5 100644 (file)
@@ -99,7 +99,7 @@ def Main(Options = None):
         Logger.Error("\nInventoryWs",\r
                     CODE_ERROR,\r
                     ST.ERR_UNKNOWN_FATAL_INVENTORYWS_ERR,\r
-                    ExtraData=ST.MSG_SEARCH_FOR_HELP,\r
+                    ExtraData=ST.MSG_SEARCH_FOR_HELP % ST.MSG_EDKII_MAIL_ADDR,\r
                     RaiseError=False\r
                     )\r
         Logger.Quiet(ST.MSG_PYTHON_ON % (python_version(),\r
index 59f71d3..7782d26 100644 (file)
@@ -316,8 +316,9 @@ MSG_NEW_FILE_NAME_FOR_DIST      = _(
     "Provide new filename for distribution file to be saved:\n")\r
 MSG_UPDATE_PACKAGE_DATABASE    = _("Update Distribution Package Database ...")\r
 MSG_PYTHON_ON                  = _("(Python %s on %s) ")\r
+MSG_EDKII_MAIL_ADDR            = 'devel@edk2.groups.io'\r
 MSG_SEARCH_FOR_HELP            = _(\r
-    "\n(Please send email to edk2-devel@lists.01.org for\n"\r
+    "\n(Please send email to %s for\n"\r
     " help, attach the following call stack trace.)\n")\r
 MSG_REMOVE_TEMP_FILE_STARTED   = _("Removing temp files started ... ")\r
 MSG_REMOVE_TEMP_FILE_DONE   = _("Removing temp files ... Done.")\r
index 3c2771f..c6d4731 100644 (file)
@@ -225,7 +225,7 @@ def Main(Options = None):
                     CODE_ERROR,\r
                     ST.ERR_UNKNOWN_FATAL_CREATING_ERR % \\r
                     Options.PackFileToCreate,\r
-                    ExtraData=ST.MSG_SEARCH_FOR_HELP,\r
+                    ExtraData=ST.MSG_SEARCH_FOR_HELP % ST.MSG_EDKII_MAIL_ADDR,\r
                     RaiseError=False\r
                     )\r
         Logger.Quiet(ST.MSG_PYTHON_ON % \\r
index 843f621..03b91da 100644 (file)
@@ -81,7 +81,7 @@ def Main(Options = None):
                     "\nReplacePkg",\r
                     CODE_ERROR,\r
                     ST.ERR_UNKNOWN_FATAL_REPLACE_ERR % (Options.PackFileToReplace, Options.PackFileToBeReplaced),\r
-                    ExtraData=ST.MSG_SEARCH_FOR_HELP,\r
+                    ExtraData=ST.MSG_SEARCH_FOR_HELP % ST.MSG_EDKII_MAIL_ADDR,\r
                     RaiseError=False\r
                     )\r
         Logger.Quiet(ST.MSG_PYTHON_ON % (python_version(),\r
index e3db8b6..cf37e2b 100644 (file)
@@ -166,7 +166,7 @@ def Main(Options = None):
                     "\nRmPkg",\r
                     CODE_ERROR,\r
                     ST.ERR_UNKNOWN_FATAL_REMOVING_ERR,\r
-                    ExtraData=ST.MSG_SEARCH_FOR_HELP,\r
+                    ExtraData=ST.MSG_SEARCH_FOR_HELP % ST.MSG_EDKII_MAIL_ADDR,\r
                     RaiseError=False\r
                     )\r
         Logger.Quiet(ST.MSG_PYTHON_ON % (python_version(), platform) + \\r
index 443c493..1adc192 100644 (file)
@@ -73,7 +73,7 @@ def Main(Options=None):
                     "\nTestInstallPkg",\r
                     TE.CODE_ERROR,\r
                     ST.ERR_UNKNOWN_FATAL_INSTALL_ERR % Options.DistFiles,\r
-                    ExtraData=ST.MSG_SEARCH_FOR_HELP,\r
+                    ExtraData=ST.MSG_SEARCH_FOR_HELP % ST.MSG_EDKII_MAIL_ADDR,\r
                     RaiseError=False\r
                     )\r
         Logger.Quiet(ST.MSG_PYTHON_ON % (python_version(), platform) + format_exc())\r
index 0270611..78654a0 100644 (file)
@@ -2485,7 +2485,7 @@ def Main():
                     "\nbuild",\r
                     CODE_ERROR,\r
                     "Unknown fatal error when processing [%s]" % MetaFile,\r
-                    ExtraData="\n(Please send email to edk2-devel@lists.01.org for help, attaching following call stack trace!)\n",\r
+                    ExtraData="\n(Please send email to %s for help, attaching following call stack trace!)\n" % MSG_EDKII_MAIL_ADDR,\r
                     RaiseError=False\r
                     )\r
         EdkLogger.quiet("(Python %s on %s) " % (platform.python_version(), sys.platform) + traceback.format_exc())\r