Ignore:
Timestamp:
Aug 2, 2017, 6:16:44 PM (7 years ago)
Author:
Bruno Cornec
Message:

revert last commit as this is not ready yet for integration in that tree !

File:
1 edited

Legend:

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

    r2239 r2241  
    2626# Inherit from the "Exporter" module which handles exporting functions.
    2727 
    28 use vars qw($VERSION $REVISION $PBCONFVER @ISA @EXPORT);
     28use vars qw($VERSION $REVISION @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,$PBCONFVER) = pb_version_init();
     36($VERSION,$REVISION) = pb_version_init();
    3737
    3838=pod
     
    7777sub pb_distro_conffile {
    7878
    79 if ($PBCONFVER < 1) {
    80     return("CCCC/pb.conf");
    81 } else {
    82     return("CCCC/pb.yml");
    83 }
     79return("CCCC/pb.conf");
    8480}
    8581
     
    9288sub pb_distro_sysconffile {
    9389
    94 if ($PBCONFVER < 1) {
    95     return("SSSS/pb.conf");
    96 } else {
    97     return("SSSS/pb.yml");
    98 }
     90return("SSSS/pb.conf");
    9991}
    10092
     
    10799Mandriva, Open SuSE and Fedora have all the same "rpm" type of build system. Ubuntu and Debian have the same "deb" type of build system.
    108100And "fc" is the extension generated for all Fedora packages (Version will be added by pb).
    109 All this information is stored in an external configuration file typically at /etc/pb/pb.yml
     101All this information is stored in an external configuration file typically at /etc/pb/pb.conf
    110102
    111103When passing the distribution name and version as parameters, the B<pb_distro_init> function returns the parameter of that distribution instead of the underlying one.
     
    643635            my $dirdest = "";
    644636            my $reponame = "";
    645             # TODO: could go in pb.yml in fact
     637            # TODO: could go in pb.conf in fact
    646638            if ($pbos->{install} =~ /\byum\b/) {
    647639                $reponame="yum";
Note: See TracChangeset for help on using the changeset viewer.