aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <nvigier@mandriva.com>2010-03-23 17:36:49 +0000
committerNicolas Vigier <nvigier@mandriva.com>2010-03-23 17:36:49 +0000
commit815be9c01c28b023f902a4d2c2fadc178da2b6f7 (patch)
tree6d884cd792cdc407630f11693fa7a72cbb841430
parentac10f2379199f2100677b456072618d588a1110e (diff)
downloadmga-youri-submit-815be9c01c28b023f902a4d2c2fadc178da2b6f7.tar
mga-youri-submit-815be9c01c28b023f902a4d2c2fadc178da2b6f7.tar.gz
mga-youri-submit-815be9c01c28b023f902a4d2c2fadc178da2b6f7.tar.bz2
mga-youri-submit-815be9c01c28b023f902a4d2c2fadc178da2b6f7.tar.xz
mga-youri-submit-815be9c01c28b023f902a4d2c2fadc178da2b6f7.zip
remove warning when authorized_users is not defined
-rw-r--r--lib/Youri/Submit/Check/Version.pm2
1 files changed, 1 insertions, 1 deletions
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=<section> $target <package 1> <package 2> ... <package n>";