Problem doing search/add on RC3 using package manager

Started by JFlame, September 17, 2010, 06:16:46 PM

Previous topic - Next topic

JFlame

Can anybody tell me why the package manager can't seen to install the following change:

<file name="$sourcedir/Subs.php">
    <operation>
        <search position="before"><![CDATA[$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);]]></search>
        <add><![CDATA[
    $context['allow_gdb_view_gdb'] = allowedTo('gdb_view_gdb');]]></add>
    </operation>

    <operation>
        <search position="after"><![CDATA[
            'mlist' => array(]]></search>
        <add><![CDATA[
            // SMF Dynamic DB changes
            // [SMF Dynamic Database] button
            'database' => array(
                'title' => $txt['gdb_menu'],
                'href' => $scripturl . '?action=genericDB',
                'show' => $context['allow_gdb_view_gdb'],
                'icon' => '',
            ),
            // End SMF Dynamic DB changes]]></add>
    </operation>
   
   
</file>


The second operation fails, yet the previous operation is fine.  It reports an error in finding the " 'mlist' => array(" portion of the change.  I am completely out of ideas. 

Any help is appreciated.
www.YamahaSuperTenere.com - Yamaha Super Tenere Motorcycle Forum

JFlame

Also, before anybody asks, the line " 'mlist' => array(" IS in the source file...
www.YamahaSuperTenere.com - Yamaha Super Tenere Motorcycle Forum

Oya


JFlame

It turns out removing all tabs/spaces before the 'mlist' worked.  Strange, I copied the exact code from a known working package file...

Anyways, all fixed.
www.YamahaSuperTenere.com - Yamaha Super Tenere Motorcycle Forum

Advertisement: