repoman: Fix bogus warnings "Invalid atom in [..]/package.keywords: D" when working...
authorSebastian Pipping <sping@gentoo.org>
Tue, 6 Jul 2010 22:17:05 +0000 (00:17 +0200)
committerZac Medico <zmedico@gentoo.org>
Wed, 7 Jul 2010 01:29:56 +0000 (18:29 -0700)
pym/portage/util/__init__.py

index ac191fb2a2d7c87ecabb6735454c08087b0ebc13..3c552025b558cbab1cc3bca8acffd5e0beef5b11 100644 (file)
@@ -324,7 +324,7 @@ def grabfile_package(myfilename, compatlevel=0, recursive=0):
 def grablines(myfilename,recursive=0):
        mylines=[]
        if recursive and os.path.isdir(myfilename):
-               if myfilename in ["RCS", "CVS", "SCCS"]:
+               if os.path.basename(myfilename) in ["RCS", "CVS", "SCCS"]:
                        return mylines
                dirlist = os.listdir(myfilename)
                dirlist.sort()