aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Danny van Dyk <dvandyk@exherbo.org> 2006-04-17 22:39:43 +0000
committerAvatar Danny van Dyk <dvandyk@exherbo.org> 2006-04-17 22:39:43 +0000
commitbe61cc8a1a35615f84dac133fe14cb7524ddde36 (patch)
treed411e1e3acb89a50e608393e123a738da5a8124a
parent98b0b6ad9f35830ab27a1f1b9767d55f1dee2e30 (diff)
downloadpaludis-be61cc8a1a35615f84dac133fe14cb7524ddde36.tar.gz
paludis-be61cc8a1a35615f84dac133fe14cb7524ddde36.tar.xz
Fix typo. Fix return value for an empty security package set. Fix whitespaces.
-rw-r--r--paludis/config_file.cc4
-rw-r--r--paludis/config_file.hh2
-rw-r--r--paludis/portage_repository.cc2
3 files changed, 4 insertions, 4 deletions
diff --git a/paludis/config_file.cc b/paludis/config_file.cc
index 814e850..732d5e8 100644
--- a/paludis/config_file.cc
+++ b/paludis/config_file.cc
@@ -410,8 +410,8 @@ AdvisoryFile::sanitise()
if (_entries["Title"].empty())
throw AdvisoryFileError("Missing mandatory key: 'Title'.");
- if (_entries["Commited-By"].empty())
- throw AdvisoryFileError("Missing mandatory key: 'Commited-By'.");
+ if (_entries["Committed-By"].empty())
+ throw AdvisoryFileError("Missing mandatory key: 'Committed-By'.");
if (_entries["Reviewed-By"].empty())
throw AdvisoryFileError("Missing mandatory key: 'Reviewed-by'.");
diff --git a/paludis/config_file.hh b/paludis/config_file.hh
index cba5f51..a121133 100644
--- a/paludis/config_file.hh
+++ b/paludis/config_file.hh
@@ -315,7 +315,7 @@ namespace paludis
* the beginning of a multi-line description of the security problem.
*
* Valid header items are:
- * Affected, Bug-Url, Commited-By, Id, Reviewed-By, Unaffected, Url
+ * Affected, Bug-Url, Committed-By, Id, Reviewed-By, Unaffected, Url
*
* \ingroup ConfigFile
*/
diff --git a/paludis/portage_repository.cc b/paludis/portage_repository.cc
index bed181f..817f0ed 100644
--- a/paludis/portage_repository.cc
+++ b/paludis/portage_repository.cc
@@ -1268,7 +1268,7 @@ PortageRepository::do_security_set() const
FSEntry security = _imp->location / "metadata" / "security";
if (!security.is_directory())
- return DepAtom::Pointer(0);
+ return DepAtom::Pointer(new AllDepAtom);
std::list<FSEntry> advisories;
std::copy(DirIterator(_imp->location / "metadata" / "security"), DirIterator(),