aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri/Submit/Check
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2012-12-04 13:08:19 +0000
committerNicolas Vigier <boklm@mageia.org>2012-12-04 13:08:19 +0000
commit47d794c598d5a3ed00c23d0a1d2daf634c30ab6f (patch)
treedd2879d14c062228e7c0827a575adb3fdcb59145 /lib/Youri/Submit/Check
parent2b75b5315e452e01803d9ac719d6f52dcc204ad5 (diff)
downloadmga-youri-submit-47d794c598d5a3ed00c23d0a1d2daf634c30ab6f.tar
mga-youri-submit-47d794c598d5a3ed00c23d0a1d2daf634c30ab6f.tar.gz
mga-youri-submit-47d794c598d5a3ed00c23d0a1d2daf634c30ab6f.tar.bz2
mga-youri-submit-47d794c598d5a3ed00c23d0a1d2daf634c30ab6f.tar.xz
mga-youri-submit-47d794c598d5a3ed00c23d0a1d2daf634c30ab6f.zip
Remove warnings about deprecated methods
Diffstat (limited to 'lib/Youri/Submit/Check')
-rw-r--r--lib/Youri/Submit/Check/ACL.pm2
-rw-r--r--lib/Youri/Submit/Check/History.pm2
-rw-r--r--lib/Youri/Submit/Check/Host.pm2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Youri/Submit/Check/ACL.pm b/lib/Youri/Submit/Check/ACL.pm
index 34bf48a..a9cf52f 100644
--- a/lib/Youri/Submit/Check/ACL.pm
+++ b/lib/Youri/Submit/Check/ACL.pm
@@ -29,7 +29,7 @@ sub _init {
sub run {
my ($self, $package, $repository, $target, $define) = @_;
croak "Not a class method" unless ref $self;
- my $file = $package->get_full_name();
+ my $file = $package->as_string();
my $arch = $package->get_arch();
my $srpm = $package->get_canonical_name;
my $section = $repository->_get_section($package, $target, $define);
diff --git a/lib/Youri/Submit/Check/History.pm b/lib/Youri/Submit/Check/History.pm
index 326f2f1..f742a36 100644
--- a/lib/Youri/Submit/Check/History.pm
+++ b/lib/Youri/Submit/Check/History.pm
@@ -42,7 +42,7 @@ sub run {
unless ($entries{$last_revision_number}) {
push(
@errors,
- "Last changelog entry $last_revision_number from last revision " . $last_revision->get_full_name() . " missing from current changelog"
+ "Last changelog entry $last_revision_number from last revision " . $last_revision->as_string() . " missing from current changelog"
);
}
}
diff --git a/lib/Youri/Submit/Check/Host.pm b/lib/Youri/Submit/Check/Host.pm
index ee880d8..2816f83 100644
--- a/lib/Youri/Submit/Check/Host.pm
+++ b/lib/Youri/Submit/Check/Host.pm
@@ -29,7 +29,7 @@ sub _init {
sub run {
my ($self, $package, $repository, $target, $define) = @_;
croak "Not a class method" unless ref $self;
- my $file = $package->get_file;
+ my $file = $package->as_file;
my $arch = $package->get_arch;
my $buildhost = $package->as_formated_string('%{buildhost}');
foreach my $h (keys %$host) {