diff options
author | Florent Villard <warly@mandriva.com> | 2006-08-05 12:49:19 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-08-05 12:49:19 +0000 |
commit | 49b1c37357b72374aaa6053d503a242e8b85dd0e (patch) | |
tree | 85a71280539ea0a0ae2e8f4e9e8837bf7e9d7660 /lib/Youri/Upload/Check | |
parent | 648860b1d702c26deef80cbb262f575f4818ae0d (diff) | |
download | mga-youri-core-49b1c37357b72374aaa6053d503a242e8b85dd0e.tar mga-youri-core-49b1c37357b72374aaa6053d503a242e8b85dd0e.tar.gz mga-youri-core-49b1c37357b72374aaa6053d503a242e8b85dd0e.tar.bz2 mga-youri-core-49b1c37357b72374aaa6053d503a242e8b85dd0e.tar.xz mga-youri-core-49b1c37357b72374aaa6053d503a242e8b85dd0e.zip |
use define to get the user
Diffstat (limited to 'lib/Youri/Upload/Check')
-rw-r--r-- | lib/Youri/Upload/Check/ACL.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Youri/Upload/Check/ACL.pm b/lib/Youri/Upload/Check/ACL.pm index e231500..9e19e35 100644 --- a/lib/Youri/Upload/Check/ACL.pm +++ b/lib/Youri/Upload/Check/ACL.pm @@ -21,10 +21,8 @@ sub _init { my $self = shift; my %options = ( acl_file => '', - user => '', @_ ); - $self->{_user} = $options{user}; $acl = get_acl($options{acl_file}); } @@ -35,7 +33,7 @@ sub run { my $arch = $package->get_arch(); my $srpm = $package->get_canonical_name; my $section = $repository->_get_section($package, $target, $define); - my $user = $self->{_user}; + my $user = $define->{user}; foreach my $t (keys %$acl) { next if $target !~ /$t/; foreach my $acl (@{$acl->{$t}}) { |