aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-31 01:27:51 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-31 01:27:51 +0000
commit4b4131e63f99eed55840d9154acdcb5c497277e0 (patch)
tree7e1c0ffb881452cf79639a7aeadbd08ff4089f75
parentfd054108ccc5edafe102ef201dc73539af8435a3 (diff)
downloadpaludis-4b4131e63f99eed55840d9154acdcb5c497277e0.tar.gz
paludis-4b4131e63f99eed55840d9154acdcb5c497277e0.tar.xz
Also check category directory existence.
-rw-r--r--paludis/qa/categories_check.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/paludis/qa/categories_check.cc b/paludis/qa/categories_check.cc
index 8200bcf..314f341 100644
--- a/paludis/qa/categories_check.cc
+++ b/paludis/qa/categories_check.cc
@@ -58,6 +58,19 @@ CategoriesCheck::operator() (const FSEntry & d) const
else if (next(r.first) != c.end())
result << Message(qal_minor, "Categories file '" + stringify(cats) + "' entry '"
+ stringify(*line) + "' is not in order");
+ else
+ {
+ FSEntry f(d.dirname() / stringify(n));
+ if (! f.is_directory())
+ {
+ if (f.exists())
+ result << Message(qal_major, "Categories file '" + stringify(cats) + "' entry '"
+ + stringify(*line) + "' exists but is not a directory");
+ else
+ result << Message(qal_minor, "Categories file '" + stringify(cats) + "' entry '"
+ + stringify(*line) + "' does not exist");
+ }
+ }
}
catch (const NameError &)
{