diff options
author | Pascal Terjan <pterjan@mageia.org> | 2011-02-08 13:30:15 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2011-02-08 13:30:15 +0000 |
commit | 106a77fcd243501b4f4eb435fa5453953df79dd1 (patch) | |
tree | 073cb58416b29623bf82096f620af4db6d329a9e /lib | |
parent | 3760bb5c7f6b2cc24cc263d7c3e8b7348b8ed5bf (diff) | |
download | mga-youri-submit-106a77fcd243501b4f4eb435fa5453953df79dd1.tar mga-youri-submit-106a77fcd243501b4f4eb435fa5453953df79dd1.tar.gz mga-youri-submit-106a77fcd243501b4f4eb435fa5453953df79dd1.tar.bz2 mga-youri-submit-106a77fcd243501b4f4eb435fa5453953df79dd1.tar.xz mga-youri-submit-106a77fcd243501b4f4eb435fa5453953df79dd1.zip |
Revert, the package was actually wrong
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Youri/Submit/Check/Deps.pm | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/Youri/Submit/Check/Deps.pm b/lib/Youri/Submit/Check/Deps.pm index 463d29a..fa239df 100644 --- a/lib/Youri/Submit/Check/Deps.pm +++ b/lib/Youri/Submit/Check/Deps.pm @@ -45,23 +45,10 @@ sub resolvedep { } $notfound; } @requires; - # Try to handle BuildRequires: kernel-server-2.6.37-3.mga-1-1.mga1 - @requires = grep { - my $require = $_; - my $notfound = 1; - if (!$require->[Youri::Package::DEPENDENCY_RANGE] && - $require->[Youri::Package::DEPENDENCY_NAME] =~ /-/) { - foreach my $provide (@provides) { - next unless $require->[Youri::Package::DEPENDENCY_NAME] =~ /^$provide->[Youri::Package::DEPENDENCY_NAME]-/; - $notfound = 0; - } - } - $notfound; - } @requires; }; $media->traverse_headers($index); foreach my $require (@requires) { - push (@errors, "Unresolved dep on " . $require->[Youri::Package::DEPENDENCY_NAME] . " " . $require->[Youri::Package::DEPENDENCY_RANGE]); + push (@errors, "Unresolved dep on " . $require->[Youri::Package::DEPENDENCY_NAME]); } return @errors; } |