All pastes #607732 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-07 21:33 UTC
rendered paste body
========================================== changed sub configurePackage For debug messages ==========================================
sub configurePackage {
    my $parent = shift;
    $packagedir = shift;
    my $opkg = shift;
    my $context = shift;
    $context = "" if ! $context;

    $my_opkg = $opkg;
    $my_context = $context;

system("echo  $packagedir/configurator.html ");

#       system(" echo package does not have a html file\n ");

    # Check for the configuration HTML file
    if ((-s "$packagedir/.selection.ignore") || (!(-s "$packagedir/configurator.html")))
        {
                system("echo no HTMl file for selected package : $opkg");
                return ;
        }

    my $tree = readInDefaultConfig("$packagedir/configurator.html");
    return if (!$tree);

    my $values = &readInConfigValues("$packagedir/configurator.html",
                                     $opkg, $context);
    &preprocessConfig($tree,$values) if $values;
    &writeOutTempConfig($tree);
    $tree->delete;    # Always delete the tree when you are done with it.

    displayWebPage($parent,"$packagedir/.configurator.temp.html");
        system("echo I am at end of configure package for selected package : $opkg");
}
==================================================================================================================







==========================================   Output from the condole ==========================================


/opt/soc/trunk/packages/sis/configurator.html
Checking if the OPKG has to be excluded...
OPKG sis: Analysing default values
HTML page will be displayed from /opt/soc/trunk/packages/sis/.configurator.temp.html
I am at end of configure package for selected package : sis
/opt/soc/trunk/packages/condor/configurator.html
no HTMl file for selected package : condor
==================================================================================================================


=================================Diff of changed file from revision 5867 ==========================================
[root@oscarhead trunk]# diff lib/OSCAR/Configbox.pm lib/OSCAR/Configbox.pm.1
609c609
<
---
> system("echo HTML page will be displayed from  $file");
657a658,661
> system("echo  $packagedir/configurator.html ");
>
> #     system(" echo package does not have a html file\n ");
>
659,660c663,667
<     return if ((-s "$packagedir/.selection.ignore") ||
<              (!(-s "$packagedir/configurator.html")));
---
>     if ((-s "$packagedir/.selection.ignore") || (!(-s "$packagedir/configurator.html")))
>       {
>               system("echo no HTMl file for selected package : $opkg");
>               return ;
>       }
671a679
>       system("echo I am at end of configure package for selected package : $opkg");