// trust.cc #include "aptitude.h" #include "trust.h" #include #include #include namespace cw = cwidget; cw::fragment *make_untrusted_warning(const pkgCache::VerIterator &ver) { if(package_trusted(ver)) return NULL; else return indentbox(0, strlen(_("WARNING"))+2, flowbox(cw::fragf(_("%F: This version of %s is from an %Buntrusted source%b! Installing this package could allow a malicious individual to damage or take control of your system."), cw::text_fragment(_("WARNING"), cw::get_style("TrustWarning")), ver.ParentPkg().FullName(true).c_str()))); }