commit:     9c6ffee12fcd52149f19b2f75c36b2396c27ee8c
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 17 02:07:13 2014 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Mon Nov 17 02:07:13 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=9c6ffee1

repoman/main.py: Update dependency.perlcore error to us qatracker

Update the original code added after the re-write had started.
This brings it up to date with teh new stats tracking class instance. 

---
 pym/repoman/main.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/pym/repoman/main.py b/pym/repoman/main.py
index b3e93bf..1815af9 100755
--- a/pym/repoman/main.py
+++ b/pym/repoman/main.py
@@ -553,11 +553,12 @@ for xpkg in effective_scanlist:
                                                                (mytype, 
suspect_virtual[atom.cp], atom))
                                                if not is_blocker and \
                                                        
atom.cp.startswith("perl-core/"):
-                                                       
stats['dependency.perlcore'] += 1
-                                                       
fails['dependency.perlcore'].append(
+                                                       
qatracker.add_error('dependency.perlcore',
                                                                
ebuild.relative_path +
                                                                ": %s: please 
use '%s' instead of '%s'" %
-                                                               (mytype, 
atom.replace("perl-core/","virtual/perl-"), atom))
+                                                               (mytype,
+                                                               
atom.replace("perl-core/","virtual/perl-"),
+                                                               atom))
 
                                        if buildtime and \
                                                not is_blocker and \

Reply via email to