aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-12-14 18:16:00 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-12-14 18:16:00 +0000
commitc2ac51f9632a8e46ef701a8b2d07f82d6fed69a7 (patch)
tree299a0478863c6a79b65b8d3bd66d31bdd83b090a /src
parent3d0b865e6ca5431b621e2537395c973829366b42 (diff)
downloadpaludis-c2ac51f9632a8e46ef701a8b2d07f82d6fed69a7.tar.gz
paludis-c2ac51f9632a8e46ef701a8b2d07f82d6fed69a7.tar.xz
Add glsa_file to GLSADepTag. Fixes: ticket:456. (Stefan Kögl)
Diffstat (limited to 'src')
-rw-r--r--src/clients/paludis/report.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/clients/paludis/report.cc b/src/clients/paludis/report.cc
index ee23fc1..47cc5f8 100644
--- a/src/clients/paludis/report.cc
+++ b/src/clients/paludis/report.cc
@@ -22,6 +22,7 @@
#include <src/output/mask_displayer.hh>
#include <paludis/report_task.hh>
#include <paludis/mask.hh>
+#include <paludis/dep_tag.hh>
#include <paludis/package_id.hh>
#include <paludis/util/visitor-impl.hh>
#include <iostream>
@@ -59,7 +60,7 @@ namespace
virtual void on_report_package_failure_pre(const tr1::shared_ptr<const PackageID> & id);
virtual void on_report_package_is_masked(const tr1::shared_ptr<const PackageID> & id, const tr1::shared_ptr<const PackageID> & origin);
virtual void on_report_package_is_vulnerable_pre(const tr1::shared_ptr<const PackageID> & id);
- virtual void on_report_package_is_vulnerable(const tr1::shared_ptr<const PackageID> & id, const std::string & tag);
+ virtual void on_report_package_is_vulnerable(const tr1::shared_ptr<const PackageID> & id, const GLSADepTag & glsa_tag);
virtual void on_report_package_is_vulnerable_post(const tr1::shared_ptr<const PackageID> & id);
virtual void on_report_package_is_missing(const tr1::shared_ptr<const PackageID> & id, const RepositoryName & repo_name);
virtual void on_report_package_is_unused(const tr1::shared_ptr<const PackageID> & id);
@@ -121,13 +122,14 @@ namespace
void
OurReportTask::on_report_package_is_vulnerable_pre(const tr1::shared_ptr<const PackageID> &)
{
- cout << endl << " Affected by:";
+ cout << endl << "this package has following security issues:" << endl;
}
void
- OurReportTask::on_report_package_is_vulnerable(const tr1::shared_ptr<const PackageID> &, const std::string & tag)
+ OurReportTask::on_report_package_is_vulnerable(const tr1::shared_ptr<const PackageID> &, const GLSADepTag & glsa_tag)
{
- cout << " " << colour(cl_tag, tag);
+ cout << " " << colour(cl_error, glsa_tag.short_text() + ": \"" + glsa_tag.glsa_title() +"\"")
+ << endl << colour(cl_error, " -> " + stringify(glsa_tag.glsa_file())) << endl;
++_n_errors;
}