aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/unavailable/unavailable_repository_file.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-05-13 19:50:54 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-05-14 17:59:12 +0100
commit2fec84edf07c6863d66730460f67409b5f831de0 (patch)
treea448ce8f2cc56afc9633ee64d25578e692d95558 /paludis/repositories/unavailable/unavailable_repository_file.cc
parentf90702f73199af1923cc35905d593ab0e4936cab (diff)
downloadpaludis-2fec84edf07c6863d66730460f67409b5f831de0.tar.gz
paludis-2fec84edf07c6863d66730460f67409b5f831de0.tar.xz
More repository id metadata
Diffstat (limited to 'paludis/repositories/unavailable/unavailable_repository_file.cc')
-rw-r--r--paludis/repositories/unavailable/unavailable_repository_file.cc20
1 files changed, 18 insertions, 2 deletions
diff --git a/paludis/repositories/unavailable/unavailable_repository_file.cc b/paludis/repositories/unavailable/unavailable_repository_file.cc
index 6f1290ae9..968073ec5 100644
--- a/paludis/repositories/unavailable/unavailable_repository_file.cc
+++ b/paludis/repositories/unavailable/unavailable_repository_file.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 2008, 2009, 2010 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -42,7 +42,7 @@ namespace paludis
template <>
struct Implementation<UnavailableRepositoryFile>
{
- std::string repo_name, homepage, description;
+ std::string repo_name, homepage, description, sync, repo_format;
Entries entries;
};
@@ -108,6 +108,10 @@ UnavailableRepositoryFile::_load(const FSEntry & f)
_imp->homepage = value;
else if (key == "description")
_imp->description = value;
+ else if (key == "sync")
+ _imp->sync = value;
+ else if (key == "repo_format")
+ _imp->repo_format = value;
else
Log::get_instance()->message("unavailable_repository.file.unknown_key", ll_warning, lc_context)
<< "Ignoring unknown key '" << key << "' with value '" << value << "'";
@@ -226,6 +230,18 @@ UnavailableRepositoryFile::description() const
return _imp->description;
}
+std::string
+UnavailableRepositoryFile::sync() const
+{
+ return _imp->sync;
+}
+
+std::string
+UnavailableRepositoryFile::repo_format() const
+{
+ return _imp->repo_format;
+}
+
template class PrivateImplementationPattern<UnavailableRepositoryFile>;
template class WrappedForwardIterator<UnavailableRepositoryFile::ConstIteratorTag,
const UnavailableRepositoryFileEntry>;