Changeset 2279 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder
- Timestamp:
- Aug 30, 2017, 5:08:03 PM (7 years ago)
- Location:
- devel/pb-modules/lib/ProjectBuilder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Conf.pm
r2278 r2279 22 22 # Inherit from the "Exporter" module which handles exporting functions. 23 23 24 use vars qw($VERSION $REVISION @ISA @EXPORT);24 use vars qw($VERSION $REVISION $PBCONFVER @ISA @EXPORT); 25 25 use Exporter; 26 26 … … 184 184 185 185 # Read the content of the config file and cache it in the %h hash then available for queries 186 if ($ confver < 0.15) {186 if ($PBCONFVER < 1) { 187 187 open(CONF,$cf) || confess "Unable to open $cf"; 188 188 # This is the original conf file format for versions up to 0.14 … … 333 333 open(CONF,"> $conffile") || confess "Unable to write into $conffile"; 334 334 335 if ($ confver < 0.15) {335 if ($PBCONFVER < 1) { 336 336 # This is the original conf file format for versions up to 0.14 337 337 foreach my $p (sort keys %$h) { -
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r2261 r2279 26 26 # Inherit from the "Exporter" module which handles exporting functions. 27 27 28 use vars qw($VERSION $REVISION @ISA @EXPORT);28 use vars qw($VERSION $REVISION $PBCONFVER @ISA @EXPORT); 29 29 use Exporter; 30 30 … … 34 34 our @ISA = qw(Exporter); 35 35 our @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(); 37 37 38 38 =pod … … 77 77 sub pb_distro_conffile { 78 78 79 return("CCCC/pb.conf"); 79 if ($PBCONFVER < 1) { 80 return("CCCC/pb.conf"); 81 } else { 82 return("CCCC/pb.yml"); 83 } 80 84 } 81 85 … … 88 92 sub pb_distro_sysconffile { 89 93 90 return("SSSS/pb.conf"); 94 if ($PBCONFVER < 1) { 95 return("SSSS/pb.conf"); 96 } else { 97 return("SSSS/pb.yml"); 98 } 91 99 } 92 100 -
devel/pb-modules/lib/ProjectBuilder/Version.pm
r2270 r2279 33 33 my $projectbuilderconfver = $PBCONFVER; 34 34 35 return($projectbuilderver,$projectbuilderrev );35 return($projectbuilderver,$projectbuilderrev,$projectbuilderconfver); 36 36 } 37 37 1;
Note:
See TracChangeset
for help on using the changeset viewer.