aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-01-04 01:23:57 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-01-04 01:23:57 +0000
commit3894d3a08745816f84c0466519e4a502aeb23173 (patch)
treede935781d56a33ca4a45035ad986b8f111cb3001
parente5b65e52e728da6db6a45f12a3c39d67ea1aed54 (diff)
downloadpaludis-3894d3a08745816f84c0466519e4a502aeb23173.tar.gz
paludis-3894d3a08745816f84c0466519e4a502aeb23173.tar.xz
Add --archs, --exclude-archs to qualudis
-rw-r--r--NEWS2
-rw-r--r--src/clients/qualudis/qualudis.cc14
-rw-r--r--src/clients/qualudis/qualudis_command_line.cc2
-rw-r--r--src/clients/qualudis/qualudis_command_line.hh6
4 files changed, 24 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index cf22baf..e0dc15e 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,8 @@ of every change, see the ChangeLog.
* --show-install-reasons is now called --show-reasons.
+ * qualudis now supports --archs and --exclude-archs.
+
0.14.0:
* The merge and unmerge utilities are now called with an explicit path.
diff --git a/src/clients/qualudis/qualudis.cc b/src/clients/qualudis/qualudis.cc
index 2b6ba95..a79be4b 100644
--- a/src/clients/qualudis/qualudis.cc
+++ b/src/clients/qualudis/qualudis.cc
@@ -324,6 +324,20 @@ namespace
for (PortageRepository::ProfilesIterator i(env.portage_repository()->begin_profiles()),
i_end(env.portage_repository()->end_profiles()) ; i != i_end ; ++i)
{
+ if (QualudisCommandLine::get_instance()->a_archs.specified())
+ if (QualudisCommandLine::get_instance()->a_archs.args_end() == std::find(
+ QualudisCommandLine::get_instance()->a_archs.args_begin(),
+ QualudisCommandLine::get_instance()->a_archs.args_end(),
+ i->arch))
+ continue;
+
+ if (QualudisCommandLine::get_instance()->a_exclude_archs.specified())
+ if (QualudisCommandLine::get_instance()->a_exclude_archs.args_end() != std::find(
+ QualudisCommandLine::get_instance()->a_exclude_archs.args_begin(),
+ QualudisCommandLine::get_instance()->a_exclude_archs.args_end(),
+ i->arch))
+ continue;
+
set_entry_heading("QA checks for package directory " + stringify(dir) +
" with profile " + stringify(i->path) + ":", true);
diff --git a/src/clients/qualudis/qualudis_command_line.cc b/src/clients/qualudis/qualudis_command_line.cc
index 340d22d..ff89e8a 100644
--- a/src/clients/qualudis/qualudis_command_line.cc
+++ b/src/clients/qualudis/qualudis_command_line.cc
@@ -35,6 +35,8 @@ QualudisCommandLine::QualudisCommandLine() :
"Options relevant for the --owner actions."),
a_qa_checks(&check_options, "qa-check", 'c', "Only perform given check."),
a_exclude_qa_checks(&check_options, "exclude-qa-check", 'C', "Exclude given check."),
+ a_archs(&check_options, "archs", 'a', "Only perform checks for the specified arch."),
+ a_exclude_archs(&check_options, "exclude-archs", 'A', "Do not perform checks for the specified arch."),
a_verbose(&check_options, "verbose", 'v', "Be verbose"),
a_quiet(&check_options, "quiet", 'q', "Be quiet"),
a_log_level(&check_options, "log-level", 'L'),
diff --git a/src/clients/qualudis/qualudis_command_line.hh b/src/clients/qualudis/qualudis_command_line.hh
index 5867d48..9e8a277 100644
--- a/src/clients/qualudis/qualudis_command_line.hh
+++ b/src/clients/qualudis/qualudis_command_line.hh
@@ -60,6 +60,12 @@ class QualudisCommandLine :
/// --exclude-qa-checks
paludis::args::StringSetArg a_exclude_qa_checks;
+ /// --archs
+ paludis::args::StringSetArg a_archs;
+
+ /// --exclude-archs
+ paludis::args::StringSetArg a_exclude_archs;
+
/// --verbose
paludis::args::SwitchArg a_verbose;