aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-22 13:11:44 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-22 13:11:44 +0000
commit75da89ad1604dc88549f9e45318a35f176a43443 (patch)
tree9067bf1512837b7763ca8d327d14ec6d499eadf3 /lib
parent6463741776a1fdaf3ac15279844352634490feaf (diff)
downloadmga-youri-submit-75da89ad1604dc88549f9e45318a35f176a43443.tar
mga-youri-submit-75da89ad1604dc88549f9e45318a35f176a43443.tar.gz
mga-youri-submit-75da89ad1604dc88549f9e45318a35f176a43443.tar.bz2
mga-youri-submit-75da89ad1604dc88549f9e45318a35f176a43443.tar.xz
mga-youri-submit-75da89ad1604dc88549f9e45318a35f176a43443.zip
allow authorized users to upload everything even during full freeze
Diffstat (limited to 'lib')
-rw-r--r--lib/Youri/Submit/Check/Version.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Youri/Submit/Check/Version.pm b/lib/Youri/Submit/Check/Version.pm
index 289ffe0..f8567eb 100644
--- a/lib/Youri/Submit/Check/Version.pm
+++ b/lib/Youri/Submit/Check/Version.pm
@@ -58,6 +58,8 @@ 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}/;
# 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>";