Ignore:
Timestamp:
Aug 28, 2016, 8:03:38 PM (8 years ago)
Author:
Bruno Cornec
Message:

Fix #115

The standard conf file is now under /usr/share/pb and the one under
/etc/pn is modifyable by the sysadmin is contains only comments by
default.

File:
1 edited

Legend:

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

    r2063 r2136  
    3333 
    3434our @ISA = qw(Exporter);
    35 our @EXPORT = qw(pb_distro_init pb_distro_conffile 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_get_param pb_distro_get_context pb_distro_to_keylist pb_distro_conf_print pb_apply_conf_proxy);
     35our @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_get_param pb_distro_get_context pb_distro_to_keylist pb_distro_conf_print pb_apply_conf_proxy);
    3636($VERSION,$REVISION) = pb_version_init();
    3737
     
    7878
    7979return("CCCC/pb.conf");
     80}
     81
     82=item B<pb_distro_sysconffile>
     83
     84This function returns the optional configuration file used for local customization
     85
     86=cut
     87
     88sub pb_distro_sysconffile {
     89
     90return("SSSS/pb.conf");
    8091}
    8192
     
    122133# depending whether we deal with package install or tar file install
    123134pb_conf_add(pb_distro_conffile());
     135
     136# Similarly for the local file available for sysadmin. After the previous one to allow overwrite to work
     137pb_conf_add(pb_distro_sysconffile());
    124138
    125139# If we don't know which distribution we're on, then guess it
Note: See TracChangeset for help on using the changeset viewer.