SVN: toys/rsget.pl/RSGet/Plugin.pm
    sparky 
    sparky at pld-linux.org
       
    Thu Jul  1 22:30:29 CEST 2010
    
    
  
Author: sparky
Date: Thu Jul  1 22:30:29 2010
New Revision: 11625
Modified:
   toys/rsget.pl/RSGet/Plugin.pm
Log:
- clarify plugin error message: return "Plugin is marked as BROKEN" instead
  of "Incorrect status"
Modified: toys/rsget.pl/RSGet/Plugin.pm
==============================================================================
--- toys/rsget.pl/RSGet/Plugin.pm	(original)
+++ toys/rsget.pl/RSGet/Plugin.pm	Thu Jul  1 22:30:29 2010
@@ -106,11 +106,11 @@
 		return "Name field: '$self->{name}' differs from file name\n";
 	}
 
-	if ( $self->{status} and $self->{status} =~ /^OK(\s+.*)?$/ ) {
-		return "";
-	}
+	return "Cannot find plugin status" unless $self->{status};
+
+	return "" if $self->{status} =~ /^OK(\s+.*)?$/;
 
-	return "Incorrect status\n";
+	return "Plugin is marked as $self->{status}";
 }
 
 sub check_parts
    
    
More information about the pld-cvs-commit
mailing list