Revision
215
Author
boklm
Date
2011-01-06 02:07:55 +0100 (Thu, 06 Jan 2011)

Log Message

search in core, nonfree, tainted instead of main, contrib

Modified Paths

Modified: build_system/mdv-youri-core/trunk/lib/Youri/Repository/Mandriva_upload_pre.pm
===================================================================
--- build_system/mdv-youri-core/trunk/lib/Youri/Repository/Mandriva_upload_pre.pm	2011-01-06 00:40:19 UTC (rev 214)
+++ build_system/mdv-youri-core/trunk/lib/Youri/Repository/Mandriva_upload_pre.pm	2011-01-06 01:07:55 UTC (rev 215)
@@ -25,6 +25,8 @@
 
 memoize('_get_section');
 
+my @pkgsections = qw/core nonfree tainted/;
+
 sub _init {
     my $self   = shift;
     my %options = (
@@ -86,7 +88,7 @@
 	$arch .= '/media'
     }
     my @packages;
-    foreach my $dir ('main', 'contrib') {
+    foreach my $dir (@pkgsections) {
 	print "Looking into $self->{_install_root}/$target/$arch/$dir/release\n";
 	push @packages, 
 	map { $self->get_package_class()->new(file => $_) }
@@ -227,7 +229,7 @@
     # for each potential section, try to match
     # a suitable source patten in source directory
     # a suitable binary patten in binary directory
-    foreach my $dir (qw/main contrib/) {
+    foreach my $dir (@pkgsections) {
         next unless
             $self->get_files(
                 $self->{_install_root},