blob: a6ed3da5a34873db9302ddf81ace04c16704bfd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $Id: Reorder.pm 1688 2007-06-28 22:44:16Z guillomovitch $
package Youri::Submit::Action::Reorder;
=head1 NAME
Youri::Submit::Action::Reorder - Reorder packages with source first
=head1 DESCRIPTION
This action ensures that the source package is the first in the list.
=cut
use warnings;
use strict;
use Carp;
use base qw/Youri::Submit::Step/;
sub process_packages {
my ($self, $packages, $repository, $target, $context) = @_;
croak "Not a class method" unless ref $self;
$packages = [
grep { $_->is_source() } @$packages,
grep { !$_->is_source() } @$packages,
];
}
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2002-2006, YOURI project
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
=cut
1;
|