summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-04 09:29:56 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-04 09:29:56 +0000
commit7619fc47624c73fc78c372e41aab39ab83f20865 (patch)
tree30b3094aded61195771c50ccf5bd573f08aa8244
parent3a33e056cffbab0d1c03299c4f568a259dcee55a (diff)
downloadportage-7619fc47624c73fc78c372e41aab39ab83f20865.tar.gz
portage-7619fc47624c73fc78c372e41aab39ab83f20865.tar.bz2
portage-7619fc47624c73fc78c372e41aab39ab83f20865.zip
In portdbapi.cp_list(), validate the ebuild name to ensure
that it matches the name of the package. svn path=/main/trunk/; revision=8421
-rw-r--r--pym/portage/dbapi/porttree.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index ea51f5d7e..db2b35aff 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -523,6 +523,10 @@ class portdbapi(dbapi):
writemsg("\nInvalid ebuild name: %s\n" % \
os.path.join(oroot, mycp, x), noiselevel=-1)
continue
+ if ps[0] != mysplit[1]:
+ writemsg("\nInvalid ebuild name: %s\n" % \
+ os.path.join(oroot, mycp, x), noiselevel=-1)
+ continue
d[mysplit[0]+"/"+pf] = None
if invalid_category and d:
writemsg(("\n!!! '%s' has a category that is not listed in " + \