Project

General

Profile

« Previous | Next » 

Revision b395c4f2

Added by Renato Botelho about 7 years ago

Add a global to keep valid meta package suffixes

View differences:

src/etc/inc/globals.inc
89 89
	"default_timezone" => "Etc/UTC",
90 90
	"language" => "en_US",
91 91
	"default_config_backup_count" => 30,
92
	"minimumtableentries_bogonsv6" => 400000
92
	"minimumtableentries_bogonsv6" => 400000,
93
	"alternativemetaports" => array("vmware")
93 94
);
94 95

  
95 96
/* IP TOS flags */
src/etc/inc/pkg-utils.inc
1224 1224
	/* XXX: Use pkg annotation */
1225 1225
	if (is_pkg_installed($g['product_name'])) {
1226 1226
		return $g['product_name'];
1227
	} else if (is_pkg_installed($g['product_name'] . '-vmware')) {
1228
		return $g['product_name'] . '-vmware';
1227
	}
1228
	foreach ($g['alternativemetaports'] as $suffix) {
1229
		if (is_pkg_installed($g['product_name'] . '-' . $suffix)) {
1230
			return $g['product_name'] . '-' . $suffix;
1231
		}
1229 1232
	}
1230 1233
	return false;
1231 1234
}

Also available in: Unified diff