diff options
author | Florent Villard <warly@mandriva.com> | 2006-10-16 11:00:00 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-10-16 11:00:00 +0000 |
commit | 0a1bb9e4984dc054e882d3a40e54bedde92873aa (patch) | |
tree | 6ddb55e6a747268365462c019f86a74720c623b7 /bin | |
parent | 81858642cc31d706f0e819012a4d930328e39610 (diff) | |
download | mga-youri-core-0a1bb9e4984dc054e882d3a40e54bedde92873aa.tar mga-youri-core-0a1bb9e4984dc054e882d3a40e54bedde92873aa.tar.gz mga-youri-core-0a1bb9e4984dc054e882d3a40e54bedde92873aa.tar.bz2 mga-youri-core-0a1bb9e4984dc054e882d3a40e54bedde92873aa.tar.xz mga-youri-core-0a1bb9e4984dc054e882d3a40e54bedde92873aa.zip |
use a section for each package
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/youri-upload.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/youri-upload.in b/bin/youri-upload.in index 374e301..c232cfb 100755 --- a/bin/youri-upload.in +++ b/bin/youri-upload.in @@ -264,16 +264,16 @@ exit(1) unless $ok; # create packages group my @packages_group; -foreach my $group ([ { }, \@ARGV ], @$pre_packages) { +foreach my $group ((map { [ { section => "", file => $_ } ] } @ARGV), @$pre_packages) { my @packages; - my ($opt, $pkg) = @$group; - foreach my $file (@$pkg) { + foreach my $opt (@$group) { + print "Preparing upload for $opt->{file}\n" if $verbose; push( @packages, create_instance( 'Youri::Package', class => $repository->get_package_class(), - file => $file, + file => $opt->{file}, %$opt ) ); |