sabayon-detectobsolete: more perlish ✨
This commit is contained in:
@@ -40,9 +40,7 @@ sub obsolete_package($$) {
|
||||
return 1 if "@out" eq "";
|
||||
foreach my $l (@out) {
|
||||
print " >> $l\n" if $verbose;
|
||||
if ( $l =~ /$package.*\{spm_repo\:gent.*/ ) {
|
||||
return 1;
|
||||
}
|
||||
return 1 if ( $l =~ /$package.*\{spm_repo\:gent.*/ );
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -64,6 +62,4 @@ foreach my $p (@packages) {
|
||||
|
||||
print "\n";
|
||||
print "Obsoletes found:\n\n";
|
||||
foreach my $obs (@obsoletes) {
|
||||
print "$obs\n";
|
||||
}
|
||||
print "$_\n" for @obsoletes;
|
||||
|
||||
Reference in New Issue
Block a user