diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-04 09:31:30 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-04 09:31:30 +0000 |
commit | fc0b5e7903f27685152934eef4a5889a13fb8a75 (patch) | |
tree | d498a750ea12092e57b5ba9ec8abdb2800bf2568 /pym | |
parent | b09e45109b91722b80c81b016c4abe81218d5b5b (diff) | |
download | portage-fc0b5e7903f27685152934eef4a5889a13fb8a75.tar.gz portage-fc0b5e7903f27685152934eef4a5889a13fb8a75.tar.bz2 portage-fc0b5e7903f27685152934eef4a5889a13fb8a75.zip |
In portdbapi.cp_list(), validate the ebuild name to ensure
that it matches the name of the package. (trunk r8421)
svn path=/main/branches/2.1.2/; revision=8422
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py index 53e3089b0..4c118cb4b 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6777,6 +6777,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 " + \ |