Changeset 19 in ProjectBuilder for devel/pb/lib


Ignore:
Timestamp:
Jul 31, 2007, 2:07:14 AM (17 years ago)
Author:
Bruno Cornec
Message:

Lots of debug traces. Looking for a bug in AppConfig where for hash a key of 1 is added without defined value.
Except that, weems to work just fine (content to be checked)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/pb.pm

    r18 r19  
    88use strict;
    99use AppConfig qw(ARGCOUNT_HASH);
     10use Data::Dumper;
    1011
    1112sub pb_init {
     
    1718                            # Auto Create variables mentioned in Conf file
    1819                            CREATE => 1,
    19                             DEBUG => 0,
     20                            DEBUG => 1,
    2021                            GLOBAL => {
    2122                                # Each conf item is a hash
    22                                 ARGCOUNT => AppConfig::ARGCOUNT_HASH
     23                                DEFAULT => { },
     24                                ARGCOUNT => AppConfig::ARGCOUNT_HASH,
    2325                            }
    2426                        });
     
    3234$ptr = $config->get("confparam") || die "Unable to find confparam in $conffile";
    3335%confparam = %$ptr;
     36print "confparam: ".Dumper($ptr)."\n";
    3437
    3538# List of pkg to build by default (mandatory)
    3639$ptr = $config->get("defpkgdir") || die "Unable to find defpkgdir in $conffile";
    3740%defpkgdir = %$ptr;
     41print "defpkgdir: ".Dumper($ptr)."\n";
    3842
    3943# List of additional pkg to build when all is called (optional)
    4044$ptr = $config->get("extpkgdir");
     45print "extpkgdir1: ".Dumper($ptr)."\n";
    4146if (not defined $ptr) {
    4247    %extpkgdir = ();
     
    4449    %extpkgdir = %$ptr;
    4550}
     51print "extpkgdir: ".Dumper(\%extpkgdir)."\n";
    4652
    4753# Valid version names (optional)
     
    5258    %version = %$ptr;
    5359}
     60print "version: ".Dumper(\%version)."\n";
    5461
    5562# List of files to filter (optional)
     
    6067    %filteredfiles = %$ptr;
    6168}
     69print "filteredfiles: ".Dumper(\%filteredfiles)."\n";
    6270
    6371}
Note: See TracChangeset for help on using the changeset viewer.