aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2007-04-21 13:31:30 +0000
committerAvatar Richard Brown <rbrown@exherbo.org> 2007-04-21 13:31:30 +0000
commitb6df194c7f152d514227dfd3b37e83afc8fb57d6 (patch)
tree9320f723d3b369badc72c026ddb7b70c73155300
parentff341feea44cac7df8f95eb33257248e4c930dab (diff)
downloadpaludis-b6df194c7f152d514227dfd3b37e83afc8fb57d6.tar.gz
paludis-b6df194c7f152d514227dfd3b37e83afc8fb57d6.tar.xz
Don't die when there is a misnamed ebuild.
-rw-r--r--src/clients/qualudis/qualudis.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/clients/qualudis/qualudis.cc b/src/clients/qualudis/qualudis.cc
index b280e8e..5774952 100644
--- a/src/clients/qualudis/qualudis.cc
+++ b/src/clients/qualudis/qualudis.cc
@@ -307,6 +307,10 @@ namespace
if (! is_file_with_extension(*f, ".ebuild", IsFileWithOptions()))
continue;
+ // Don't check ebuilds with the wrong name.
+ if (stringify(dir.basename()) != stringify(f->basename()).substr(0,stringify(dir.basename()).length()))
+ continue;
+
qa::EbuildCheckData d(
QualifiedPackageName(CategoryNamePart(stringify(dir.dirname().basename())),
PackageNamePart(stringify(dir.basename()))),
@@ -328,6 +332,10 @@ namespace
if (! is_file_with_extension(*f, ".ebuild", IsFileWithOptions()))
continue;
+ // Don't check ebuilds with the wrong name.
+ if (stringify(dir.basename()) != stringify(f->basename()).substr(0,stringify(dir.basename()).length()))
+ continue;
+
for (RepositoryPortageInterface::ProfilesIterator
i(env.main_repository()->portage_interface->begin_profiles()),
i_end(env.main_repository()->portage_interface->end_profiles()) ; i != i_end ; ++i)