~ubuntu-branches/ubuntu/gutsy/bugzilla/gutsy-security

« back to all changes in this revision

Viewing changes to importxml.pl

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine, Alexis Sukrieh, Francesco P. Lovergine
  • Date: 2004-12-07 22:54:45 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041207225445-ezb3nym06pow9mng
Tags: 2.16.7-0.2
* NMU 0-days due to serious/important bug solving which prevents
  bugzilla entering testing.

[ Alexis Sukrieh ]

* Post-inst won't fail anymore when no MySQL server is
  available. Added an automatic way of setting up the MySQL server if
  /etc/mysql/debian.cnf exists, will read values from it then.
  (closes: #250638)
* Using a MySQL user with '-' inside its name won't fail anymore.
  (closes unreported bug)
* Better handling on DBI connection errors. When DBI complains about
  something, user is not confused anymore by ugly error messages.
  (closes: #154249)
* Running checksetup.pl by hand won't break the Bugzilla's installation
  anymore. User can use it as he want without running dpkg-reconfigure.
  (closes: #200707)

[ Francesco P. Lovergine ]

* Now rules removes .cvsignore file which trashes /usr/share/bugzilla/template.
* Added virtual package httpd to the list of web server.
  (closes: #213784)

Show diffs side-by-side

added added

removed removed

Lines of Context:
377
377
 
378
378
  my @product;
379
379
  my @component;
380
 
  if ((@product = grep /^$prod$/i, @::legal_product) &&
381
 
      (@component = grep /^$comp$/i, @{$::components{$product[0]}}) ) {
 
380
  if ((@product = grep { lc($prod) eq lc($_) } @::legal_product) &&
 
381
      (@component = grep { lc($comp) eq lc($_) } @{$::components{$product[0]}}) ) {
382
382
    push (@query, "product");
383
383
    push (@values, SqlQuote($product[0]) );
384
384
    push (@query, "component");
385
385
    push (@values, SqlQuote($component[0]) );
386
 
  } elsif ((@product = grep /^$default_prod$/i, @::legal_product) &&
387
 
      (@component = grep /^$default_comp$/i, @{$::components{$product[0]}}) ) {
 
386
  } elsif ((@product = grep { lc($default_prod) eq lc($_) } @::legal_product) &&
 
387
      (@component = grep { lc($default_comp) eq lc($_) } @{$::components{$product[0]}}) ) {
388
388
    push (@query, "product");
389
389
    push (@values, SqlQuote($product[0]) );
390
390
    push (@query, "component");