Help with patch

William Muriithi william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Mon Dec 13 21:44:18 UTC 2010


> You manually edit the new data_sources.php and do whatever the patch in
> data_sources.php.rej says.  Usually rejects are due to unrelated changes
> in surounding lines.
>

Thanks a lot.  There was a comment that seem to have been inserted
that the patch was not expecting.  The data_sources.php looked like
this around this hunk

   $i = 0;
        if (sizeof($data_sources) > 0) {
                foreach ($data_sources as $data_source) {
                        /* we're escaping strings here, so no need to
escape them on form_selectable_cell */
                        $data_template_name =
((empty($data_source["data_template_name"])) ? "<em>None</em>" :
htmlspecialchars($data_source["data_template_name"]));
                        $data_input_name    =
((empty($data_source["data_input_name"])) ? "<em>External</em>" :
htmlspecialchars($data_source["data_input_name"]));
                        $poller_interval    =
((isset($poller_intervals[$data_source["local_data_id"]])) ?
$poller_intervals[$data_source["local_data_id"]] : 0);

I was looking at how to add the whole section, instead of one line and
that is why I couldn't find a way.  I was completely blind to the "+",
but now it makes perfect sense

Thank you a lot again

William
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list