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


Ignore:
Timestamp:
Feb 15, 2009, 10:05:00 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • Differentiate between Scripts for VE and VM with 2 tags
  • Have a working newve, setupve and cms2ve sequence for rinse and centos5 at least (rest to be tested)
  • Planned usage of chroot (tested) and schroot (not tested)
  • Remove the external locale dependece to use the one provided by perl !
  • Fix CentOS support in Distribution module
Location:
devel/pb-modules/lib/ProjectBuilder
Files:
3 edited

Legend:

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

    r556 r681  
    2020use Pod::Usage;
    2121use English;
    22 use locale;
    23 use POSIX qw(setlocale);
     22use POSIX qw(locale_h);
    2423
    2524# Inherit from the "Exporter" module which handles exporting functions.
  • devel/pb-modules/lib/ProjectBuilder/Display.pm

    r515 r681  
    1717use Pod::Usage;
    1818use English;
    19 use locale;
    2019use Locale::gettext;
    21 use POSIX qw(setlocale);
     20use POSIX qw(locale_h);
    2221use ProjectBuilder::Base;
    2322
  • devel/pb-modules/lib/ProjectBuilder/Distribution.pm

    r652 r681  
    258258    'vmware'                => 'VMware ESX Server (\d+) \(',
    259259    'rhel'                  => 'Red Hat (?:Enterprise Linux|Linux Advanced Server) .*release ([0-9.]+).* \(',
    260     'centos'                => '.*CentOS .*release (.+) ',
     260    'centos'                => '.*CentOS .*release ([0-9]).* ',
    261261    'redhat'                => 'Red Hat Linux release (.+) \(',
    262262    'sles'                  => 'SUSE .* Enterprise Server (\d+) \(',
     
    411411    # What we found with the regexp is the list of deps.
    412412    pb_log(2,"found deps: $_\n");
    413     s/$regexp/$1/;
     413    s/$regexp/$1/i;
    414414    # Remove conditions in the middle and at the end
    415415    s/[><=]+.*,/,/g;
Note: See TracChangeset for help on using the changeset viewer.