summaryrefslogtreecommitdiffstats
path: root/debian/helpers/getdefault.pl
blob: 0c12743429e37108d9507176a4db9eb0b6dfc864 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl

# Get default Go implementation.

use warnings;
use strict;

use Debian::Debhelper::Dh_Lib;

my %known_packages = map { $_ => 1 } getpackages('arch');
if (exists($known_packages{'golang-go'})) {
	printf("golang-go\n");
} else {
	printf("gccgo-go\n");
}