use const_pointer_cast to un-const
authorKlaus Kaempf <kkaempf@suse.de>
Thu, 19 Jan 2006 12:16:48 +0000 (12:16 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Thu, 19 Jan 2006 12:16:48 +0000 (12:16 +0000)
testsuite/solver/deptestomatic.cc

index 5586e9b0accc4b9b319bd40ca5860efdd9a6b0aa..dc646289b083e978bb341aff2075126790720e25 100644 (file)
@@ -594,10 +594,9 @@ parse_xml_setup (XmlNode_Ptr node)
 
                if (!system_channel)
                    fprintf (stderr, "No system channel available!\n");
-#warning force-install disabled
-//             ResItem_Ptr r = ResItem_Ptr::cast_away_const(resItem);
-//             r->setChannel (system_channel);
-//             r->setInstalled (true);
+               ResItem_Ptr r = boost::const_pointer_cast<ResItem>(resItem);
+               r->setChannel (system_channel);
+               r->setInstalled (true);
            } else {
                fprintf (stderr, "Unknown package %s::%s\n", channel_name.c_str(), package_name.c_str());
            }