aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/unavailable/unavailable_repository_file.cc
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-06-10 15:14:07 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-06-10 15:14:07 +0000
commit97a2f024cee04b28694739c276492c5fdf15d456 (patch)
tree73aa3018484d431da3a3fe7df988d43bca44633c /paludis/repositories/unavailable/unavailable_repository_file.cc
parentbff468799b90d6e474a61c76f6828aa8c2a47fff (diff)
downloadpaludis-97a2f024cee04b28694739c276492c5fdf15d456.tar.gz
paludis-97a2f024cee04b28694739c276492c5fdf15d456.tar.xz
Allow repository files for UnavailableRepository to specify a repository homepage and description.
Diffstat (limited to 'paludis/repositories/unavailable/unavailable_repository_file.cc')
-rw-r--r--paludis/repositories/unavailable/unavailable_repository_file.cc18
1 files changed, 17 insertions, 1 deletions
diff --git a/paludis/repositories/unavailable/unavailable_repository_file.cc b/paludis/repositories/unavailable/unavailable_repository_file.cc
index d6103c946..886823e7a 100644
--- a/paludis/repositories/unavailable/unavailable_repository_file.cc
+++ b/paludis/repositories/unavailable/unavailable_repository_file.cc
@@ -39,7 +39,7 @@ namespace paludis
template <>
struct Implementation<UnavailableRepositoryFile>
{
- std::string repo_name;
+ std::string repo_name, homepage, description;
std::list<UnavailableRepositoryFileEntry> entries;
};
}
@@ -97,6 +97,10 @@ UnavailableRepositoryFile::_load(const FSEntry & f)
}
else if (key == "repo_name")
_imp->repo_name = value;
+ else if (key == "homepage")
+ _imp->homepage = value;
+ else if (key == "description")
+ _imp->description = value;
else
Log::get_instance()->message("unavailable_repository.file.unknown_key", ll_warning, lc_context)
<< "Ignoring unknown key '" << key << "' with value '" << value << "'";
@@ -203,6 +207,18 @@ UnavailableRepositoryFile::repo_name() const
return _imp->repo_name;
}
+std::string
+UnavailableRepositoryFile::homepage() const
+{
+ return _imp->homepage;
+}
+
+std::string
+UnavailableRepositoryFile::description() const
+{
+ return _imp->description;
+}
+
template class PrivateImplementationPattern<UnavailableRepositoryFile>;
template class WrappedForwardIterator<UnavailableRepositoryFile::ConstIteratorTag,
const UnavailableRepositoryFileEntry>;