aboutsummaryrefslogtreecommitdiff
path: root/python/choices.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-08-06 22:29:05 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-08-06 22:29:05 +0100
commit690f227d9efcbd1bf4e232591faf8b3885fc3b76 (patch)
treee8eef637815980649516ef49083e26d4fb48bb28 /python/choices.cc
parenta5a402331f246c81bdd14dea34639ec2f916928c (diff)
downloadpaludis-690f227d9efcbd1bf4e232591faf8b3885fc3b76.tar.gz
paludis-690f227d9efcbd1bf4e232591faf8b3885fc3b76.tar.xz
Better tracking of choice origins
Diffstat (limited to 'python/choices.cc')
-rw-r--r--python/choices.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/python/choices.cc b/python/choices.cc
index 5cda2bb21..18287effe 100644
--- a/python/choices.cc
+++ b/python/choices.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008, 2010 Ciaran McCreesh
+ * Copyright (c) 2008, 2010, 2011 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
@@ -121,8 +121,8 @@ void expose_choices()
"[ro] String\n"
)
- .add_property("explicitly_listed", &ChoiceValue::explicitly_listed,
- "[ro] bool\n"
+ .add_property("origin", &ChoiceValue::origin,
+ "[ro] ChoiceOrigin\n"
)
;
@@ -159,5 +159,8 @@ void expose_choices()
"UnprefixedChoiceName",
"A choice name, without prefix."
);
+
+ enum_auto("ChoiceOrigin", last_co,
+ "The origin of a ChoiceValue");
}