summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/util/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py
index ac191fb2a..3c552025b 100644
--- a/pym/portage/util/__init__.py
+++ b/pym/portage/util/__init__.py
@@ -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()