aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/required_confirmations.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-17 22:14:46 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-17 22:14:46 +0100
commit6643fc956c40883558ed4f83de8417dadbe24d1d (patch)
treed093c2d44ba62652e33b97c7df930ec8d109a59f /paludis/resolver/required_confirmations.cc
parent0ff303c60e44d2c46d9435443eac08e24a984821 (diff)
downloadpaludis-6643fc956c40883558ed4f83de8417dadbe24d1d.tar.gz
paludis-6643fc956c40883558ed4f83de8417dadbe24d1d.tar.xz
UI for unsafe uninstalls
Fixes: ticket:850
Diffstat (limited to 'paludis/resolver/required_confirmations.cc')
-rw-r--r--paludis/resolver/required_confirmations.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/paludis/resolver/required_confirmations.cc b/paludis/resolver/required_confirmations.cc
index ac0ad4a13..1b2bbefac 100644
--- a/paludis/resolver/required_confirmations.cc
+++ b/paludis/resolver/required_confirmations.cc
@@ -34,6 +34,8 @@ RequiredConfirmation::deserialise(Deserialisation & d)
return DowngradeConfirmation::deserialise(d);
else if (d.class_name() == "NotBestConfirmation")
return NotBestConfirmation::deserialise(d);
+ else if (d.class_name() == "BreakConfirmation")
+ return BreakConfirmation::deserialise(d);
else
throw InternalError(PALUDIS_HERE, "unknown class '" + stringify(d.class_name()) + "'");
@@ -68,6 +70,20 @@ NotBestConfirmation::serialise(Serialiser & s) const
;
}
+const std::tr1::shared_ptr<BreakConfirmation>
+BreakConfirmation::deserialise(Deserialisation & d)
+{
+ Deserialisator v(d, "BreakConfirmation");
+ return make_shared_ptr(new BreakConfirmation);
+}
+
+void
+BreakConfirmation::serialise(Serialiser & s) const
+{
+ s.object("BreakConfirmation")
+ ;
+}
+
template class Sequence<std::tr1::shared_ptr<const RequiredConfirmation> >;
template class WrappedForwardIterator<RequiredConfirmations::ConstIteratorTag, const std::tr1::shared_ptr<const RequiredConfirmation> >;