From 815be9c01c28b023f902a4d2c2fadc178da2b6f7 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 23 Mar 2010 17:36:49 +0000 Subject: remove warning when authorized_users is not defined --- lib/Youri/Submit/Check/Version.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Youri/Submit/Check/Version.pm b/lib/Youri/Submit/Check/Version.pm index 71b2686..127117e 100644 --- a/lib/Youri/Submit/Check/Version.pm +++ b/lib/Youri/Submit/Check/Version.pm @@ -59,7 +59,7 @@ sub run { # FIXME: The following code is not working and must be reviewed. elsif ($opt->{mode} eq 'freeze') { my $user = $define->{user}; - return if $user =~ /^($opt->{authorized_users})$/; + return if (defined($opt->{authorized_users}) && $user =~ /^($opt->{authorized_users})$/); # XXX: So freeze mode really only check for this exceptions? if ($section !~ /$opt->{authorized_sections}/) { return "FREEZE: repository $target section $section is frozen, you can still submit your packages in testing\nTo do so use your.devel --define section=
$target ... "; -- cgit v1.2.1