aboutsummaryrefslogtreecommitdiff
path: root/src/clients/qualudis/qualudis.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-15 15:22:53 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-10-15 15:22:53 +0000
commit1a6cbb6d5b5a7df61a06c48aa4532fcc365b60cb (patch)
treeef9ca380388355ca02a1d397c1995e4251d182c5 /src/clients/qualudis/qualudis.cc
parent8fe3ab0de041387e52de4a7dd8655c4428741b79 (diff)
downloadpaludis-1a6cbb6d5b5a7df61a06c48aa4532fcc365b60cb.tar.gz
paludis-1a6cbb6d5b5a7df61a06c48aa4532fcc365b60cb.tar.xz
Honour directories for qualudis, QA
Diffstat (limited to 'src/clients/qualudis/qualudis.cc')
-rw-r--r--src/clients/qualudis/qualudis.cc27
1 files changed, 21 insertions, 6 deletions
diff --git a/src/clients/qualudis/qualudis.cc b/src/clients/qualudis/qualudis.cc
index 7477fb89d..d42c3b01a 100644
--- a/src/clients/qualudis/qualudis.cc
+++ b/src/clients/qualudis/qualudis.cc
@@ -283,12 +283,27 @@ int main(int argc, char *argv[])
throw ConfigurationError("Repository '" + stringify(env->main_repository()->name()) + "' does not support QA checks");
QualudisReporter r;
- env->main_repository()->qa_interface->check_qa(
- r,
- QACheckProperties(),
- QACheckProperties(),
- QualudisCommandLine::get_instance()->message_level,
- env->main_repository_dir());
+ if (QualudisCommandLine::get_instance()->empty())
+ {
+ env->main_repository()->qa_interface->check_qa(
+ r,
+ QACheckProperties(),
+ QACheckProperties(),
+ QualudisCommandLine::get_instance()->message_level,
+ FSEntry::cwd());
+ }
+ else
+ {
+ for (QualudisCommandLine::ParametersConstIterator c(QualudisCommandLine::get_instance()->begin_parameters()),
+ c_end(QualudisCommandLine::get_instance()->end_parameters()) ;
+ c != c_end ; ++c)
+ env->main_repository()->qa_interface->check_qa(
+ r,
+ QACheckProperties(),
+ QACheckProperties(),
+ QualudisCommandLine::get_instance()->message_level,
+ FSEntry(*c));
+ }
}
catch (const DoVersion &)
{