aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-04-30 15:10:36 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-04-30 15:10:36 +0000
commit5f0b66f16999de6c4367422da4bb58724c63e418 (patch)
tree2b0c1cc1181c9e23cc1a9f85f4381be32e5ec816
parentc6eba9b5c810263fb683348bd622433082233b88 (diff)
downloadpaludis-5f0b66f16999de6c4367422da4bb58724c63e418.tar.gz
paludis-5f0b66f16999de6c4367422da4bb58724c63e418.tar.xz
Further improvements to ebuild name checking.
-rw-r--r--paludis/qa/ebuild_name_check.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/paludis/qa/ebuild_name_check.cc b/paludis/qa/ebuild_name_check.cc
index eca9832..d61f61c 100644
--- a/paludis/qa/ebuild_name_check.cc
+++ b/paludis/qa/ebuild_name_check.cc
@@ -41,9 +41,13 @@ EbuildNameCheck::operator() (const FSEntry & f) const
if (stringify(f.dirname().basename()) != stringify(
PackageDepSpec("=cat/" + strip_trailing_string(stringify(f.basename()), ".ebuild"),
pds_pm_permissive).package_ptr()->package))
- result << Message(qal_fatal, "Ebuild name does not match directory name");
+ result << Message(qal_fatal, "Ebuild package name does not match directory name");
}
- catch (const PackageDepSpecError)
+ catch (const PackageNamePartError &)
+ {
+ result << Message(qal_fatal, "Ebuild package name is invalid");
+ }
+ catch (const Exception &)
{
result << Message(qal_fatal, "Ebuild version is invalid");
}