Changeset 2279 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder


Ignore:
Timestamp:
Aug 30, 2017, 5:08:03 PM (7 years ago)
Author:
Bruno Cornec
Message:

YAML support working for most distros

  • Fix rebase issues
  • Adds a pbsyncheck script for pre-commit check
  • Fix test deps for centos & fedora
  • update pbcl versions for deb build
Location:
devel/pb-modules/lib/ProjectBuilder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Conf.pm

    r2278 r2279  
    2222# Inherit from the "Exporter" module which handles exporting functions.
    2323 
    24 use vars qw($VERSION $REVISION @ISA @EXPORT);
     24use vars qw($VERSION $REVISION $PBCONFVER @ISA @EXPORT);
    2525use Exporter;
    2626 
     
    184184
    185185# Read the content of the config file and cache it in the %h hash then available for queries
    186 if ($confver < 0.15) {
     186if ($PBCONFVER < 1) {
    187187    open(CONF,$cf) || confess "Unable to open $cf";
    188188    # This is the original conf file format for versions up to 0.14
     
    333333open(CONF,"> $conffile") || confess "Unable to write into $conffile";
    334334
    335 if ($confver < 0.15) {
     335if ($PBCONFVER < 1) {
    336336    # This is the original conf file format for versions up to 0.14
    337337    foreach my $p (sort keys %$h) {
  • devel/pb-modules/lib/ProjectBuilder/Distribution.pm

    r2261 r2279  
    2626# Inherit from the "Exporter" module which handles exporting functions.
    2727 
    28 use vars qw($VERSION $REVISION @ISA @EXPORT);
     28use vars qw($VERSION $REVISION $PBCONFVER @ISA @EXPORT);
    2929use Exporter;
    3030 
     
    3434our @ISA = qw(Exporter);
    3535our @EXPORT = qw(pb_distro_init pb_distro_conffile pb_distro_sysconffile pb_distro_get pb_distro_getlsb pb_distro_installdeps pb_distro_getdeps pb_distro_only_deps_needed pb_distro_setuprepo pb_distro_setuposrepo pb_distro_setuprepo_gen pb_distro_get_param pb_distro_get_context pb_distro_to_keylist pb_distro_conf_print pb_apply_conf_proxy);
    36 ($VERSION,$REVISION) = pb_version_init();
     36($VERSION,$REVISION,$PBCONFVER) = pb_version_init();
    3737
    3838=pod
     
    7777sub pb_distro_conffile {
    7878
    79 return("CCCC/pb.conf");
     79if ($PBCONFVER < 1) {
     80    return("CCCC/pb.conf");
     81} else {
     82    return("CCCC/pb.yml");
     83}
    8084}
    8185
     
    8892sub pb_distro_sysconffile {
    8993
    90 return("SSSS/pb.conf");
     94if ($PBCONFVER < 1) {
     95    return("SSSS/pb.conf");
     96} else {
     97    return("SSSS/pb.yml");
     98}
    9199}
    92100
  • devel/pb-modules/lib/ProjectBuilder/Version.pm

    r2270 r2279  
    3333my $projectbuilderconfver = $PBCONFVER;
    3434
    35 return($projectbuilderver,$projectbuilderrev);
     35return($projectbuilderver,$projectbuilderrev,$projectbuilderconfver);
    3636}
    37371;
Note: See TracChangeset for help on using the changeset viewer.