Ignore:
Timestamp:
Jan 13, 2011, 1:18:37 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Adds a global variable REVISION for version management
  • Do not return in pb_send2target if pb file not available in order to shutdown VM in all cases
  • Code and test sbx2setupvm
  • setup_v now needs a fake pb_version_init fct added at the end of the script
  • Fix pbdistrocheck install comand printing
  • Fix mandralinux old distro build in pb.conf (Note only non symlink release files are important)
File:
1 edited

Legend:

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

    r1148 r1156  
    1919# Inherit from the "Exporter" module which handles exporting functions.
    2020 
    21 use vars qw($VERSION @ISA @EXPORT);
     21use vars qw($VERSION $REVISION @ISA @EXPORT);
    2222use Exporter;
    2323 
     
    2727our @ISA = qw(Exporter);
    2828our @EXPORT = qw(pb_distro_conffile pb_distro_init 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);
    29 $VERSION = "$ProjectBuilder::Version::VERSION";
     29($VERSION,$REVISION) = pb_version_init();
    3030
    3131=pod
     
    156156This function returns a list of 2 parameters indicating the distribution name and version of the underlying Linux distribution. The value of those 2 fields may be "unknown" in case the function was unable to recognize on which distribution it is running.
    157157
    158 On my home machine it would currently report ("mandriva","2009.0").
     158On my home machine it would currently report ("mandriva","2010.2").
    159159
    160160=cut
Note: See TracChangeset for help on using the changeset viewer.