Pass token_class=portage.dep.Atom when parsing PROVIDE.
authorZac Medico <zmedico@gentoo.org>
Tue, 17 Aug 2010 01:29:18 +0000 (18:29 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 17 Aug 2010 01:29:18 +0000 (18:29 -0700)
bin/repoman

index cb9baf1bed3623fd52c1d3ab361b0433bfbe95dc..920f5edf2ed611a9b3e819e523d165abefb4bcbe 100755 (executable)
@@ -1467,7 +1467,8 @@ for x in scanlist:
                                        (relative_path, mirror))
 
                try:
-                       provide = portage.dep.use_reduce(pkg.metadata['PROVIDE'], matchall=1, flat=True)
+                       provide = portage.dep.use_reduce(pkg.metadata['PROVIDE'],
+                               token_class=portage.dep.Atom, matchall=1, flat=True)
                except portage.exception.InvalidDependString:
                        stats["PROVIDE.syntax"] = stats["PROVIDE.syntax"] + 1
                        fails["PROVIDE.syntax"].append("%s: %s" % \