recognize redhat 'ES'

This commit is contained in:
Doug MacEachern 2005-06-14 00:17:28 +00:00
parent 2642e5ff3b
commit 3e5ba8a9ec
1 changed files with 6 additions and 3 deletions

View File

@ -197,10 +197,13 @@ public class OperatingSystem {
public void parse(String line, OperatingSystem os) {
super.parse(line, os);
String token = "Red Hat Enterprise Linux AS";
String token = "Red Hat Enterprise Linux ";
if (line.startsWith(token)) {
os.vendorVersion = "AS " + os.vendorVersion;
line = line.substring(token.length());
int ix = line.indexOf(" "); //'AS' or 'ES'
os.vendorVersion =
line.substring(0, ix) + " " + os.vendorVersion;
}
}
}