oscar-cluster / oscar

OSCAR main source repository.
GNU General Public License v2.0
13 stars 2 forks source link

[RAPT] Codename detection should be based on OS_Detect #537

Closed dikim33 closed 7 years ago

dikim33 commented 7 years ago

Reported by valleegr on 10 Apr 2009 18:00 UTC RAPT currently implements its own distribution codename detection:

sub distro_to_codename ($) {
    my $distro = shift;

    if ($distro =~ /^debian-4-(.*)$/) {
        return "etch";
    } elsif ($distro =~ /^ubuntu-7-(.*)$/) {
        return "gutsy";
    } elsif ($distro =~ /^ubuntu-8-(.*)$/) {
        return "hardy";
    } else {
        return undef;
    }
}

This is very limited and duplicate functionalities from OS_Detect, that should be updated.

dikim33 commented 7 years ago

Comment by valleegr on 10 Apr 2009 18:45 UTC (In [8375]) This check-in fixes #538 - The distro codename detection in RAPT is now based on OS_Detect.