[bugzilla-gnome-org-extensions] gnome: Stop using deprecated new invocation
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-extensions] gnome: Stop using deprecated new invocation
- Date: Thu, 20 Nov 2014 22:16:15 +0000 (UTC)
commit cd968b52fc381cc7eb0376e55bb7bd6bcfe2351e
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Thu Nov 13 21:28:17 2014 +0100
gnome: Stop using deprecated new invocation
GNOME/Extension.pm | 12 ++++++------
GNOME/lib/WebService.pm | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/GNOME/Extension.pm b/GNOME/Extension.pm
index f351682..ea55947 100644
--- a/GNOME/Extension.pm
+++ b/GNOME/Extension.pm
@@ -52,7 +52,7 @@ sub install_update_db {
}
# Don't want Platform in GNOME Bugzilla
- my $platform = new Bugzilla::Field({'name' => 'rep_platform'});
+ my $platform = Bugzilla::Field->new({'name' => 'rep_platform'});
if (!$platform->obsolete || $platform->in_new_bugmail) {
$platform->set_obsolete(1);
@@ -67,7 +67,7 @@ sub install_before_final_checks {
# 2009-05-06 bbaetz everythingsolved com - add GNOME version and GNOME target fields
my $classification_id = get_field_id("classification");
- my $gnome_version = new Bugzilla::Field({'name' => 'cf_gnome_version'});
+ my $gnome_version = Bugzilla::Field->new({'name' => 'cf_gnome_version'});
if (!$gnome_version) {
$gnome_version = Bugzilla::Field->create({
name => 'cf_gnome_version',
@@ -83,7 +83,7 @@ sub install_before_final_checks {
});
}
- my $gnome_target = new Bugzilla::Field({'name' => 'cf_gnome_target'});
+ my $gnome_target = Bugzilla::Field->new({'name' => 'cf_gnome_target'});
if (!$gnome_target) {
$gnome_target = Bugzilla::Field->create({
name => 'cf_gnome_target',
@@ -211,8 +211,8 @@ sub _update_gnome_cf_visibility_values {
my $dbh = Bugzilla->dbh;
- my $gnome_version = new Bugzilla::Field({'name' => 'cf_gnome_version'});
- my $gnome_target = new Bugzilla::Field({'name' => 'cf_gnome_target'});
+ my $gnome_version = Bugzilla::Field->new({'name' => 'cf_gnome_version'});
+ my $gnome_target = Bugzilla::Field->new({'name' => 'cf_gnome_target'});
# Paranoia; these should have been added by checksetup.pl
return unless $gnome_version || $gnome_target;
@@ -292,7 +292,7 @@ sub bugmail_recipients {
# Don't email to @gnome.bugs and related
foreach my $user_id (keys %{$recipients}) {
- $users->{$user_id} ||= new Bugzilla::User($user_id);
+ $users->{$user_id} ||= Bugzilla::User->new($user_id);
my $user = $users->{$user_id};
delete $recipients->{$user_id} if $user->email =~ /\.bugs$/;
diff --git a/GNOME/lib/WebService.pm b/GNOME/lib/WebService.pm
index b141431..738ad52 100644
--- a/GNOME/lib/WebService.pm
+++ b/GNOME/lib/WebService.pm
@@ -50,7 +50,7 @@ sub addversionx {
my $product = Bugzilla::Product->check($product_name);
# If the full version already exists, we don't create a .x version.
- my $version = new Bugzilla::Version({ product => $product, name => $new_version });
+ my $version = Bugzilla::Version->new({ product => $product, name => $new_version });
if ($version) {
return ", exists (", $product->name, ")";
}
@@ -68,7 +68,7 @@ sub addversionx {
# Check if the higher v.x versions exist.
my $last_version_x;
while (1) {
- my $version = new Bugzilla::Version({ product => $product, name => $version_x });
+ my $version = Bugzilla::Version->new({ product => $product, name => $version_x });
if ($version) {
return ", exists (", $product->name, ")";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]