Commit 66d2c81c authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 479228: Duplicated words in the error message in importxml.pl when the…

Bug 479228: Duplicated words in the error message in importxml.pl when the default product or component doesn't exist - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
parent 7d2c2264
...@@ -322,19 +322,17 @@ sub init() { ...@@ -322,19 +322,17 @@ sub init() {
Error( "no urlbase set", "REOPEN", $exporter ) unless ($urlbase); Error( "no urlbase set", "REOPEN", $exporter ) unless ($urlbase);
my $def_product = my $def_product =
new Bugzilla::Product( { name => $params->{"moved-default-product"} } ) new Bugzilla::Product( { name => $params->{"moved-default-product"} } )
|| Error("Cannot import these bugs because an invalid default || Error("an invalid default product was defined for the target DB. " .
product was defined for the target db." $params->{"maintainer"} . " needs to fix the definitions of " .
. $params->{"maintainer"} . " needs to fix the definitions of "moved-default-product. \n", "REOPEN", $exporter);
moved-default-product. \n", "REOPEN", $exporter);
my $def_component = new Bugzilla::Component( my $def_component = new Bugzilla::Component(
{ {
product => $def_product, product => $def_product,
name => $params->{"moved-default-component"} name => $params->{"moved-default-component"}
}) })
|| Error("Cannot import these bugs because an invalid default || Error("an invalid default component was defined for the target DB. " .
component was defined for the target db." $params->{"maintainer"} . " needs to fix the definitions of " .
. $params->{"maintainer"} . " needs to fix the definitions of "moved-default-component.\n", "REOPEN", $exporter);
moved-default-component.\n", "REOPEN", $exporter);
} }
...@@ -1354,7 +1352,7 @@ importxml - Import bugzilla bug data from xml. ...@@ -1354,7 +1352,7 @@ importxml - Import bugzilla bug data from xml.
Options: Options:
-? --help brief help message -? --help brief help message
-v --verbose print error and debug information. -v --verbose print error and debug information.
Mulltiple -v increases verbosity Multiple -v increases verbosity
-m --sendmail send mail to recipients with log of bugs imported -m --sendmail send mail to recipients with log of bugs imported
--attach_path The path to the attachment files. --attach_path The path to the attachment files.
(Required if encoding="filename" is used for attachments.) (Required if encoding="filename" is used for attachments.)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment