|
@@ 999-1011 (lines=13) @@
|
| 996 |
|
$this->sys->setDistribution($this->sys->getDistribution()." ".trim($vers_buf[1])); |
| 997 |
|
} |
| 998 |
|
} |
| 999 |
|
} else { |
| 1000 |
|
if (isset($list[trim($id_buf[1])]['Name'])) { |
| 1001 |
|
$this->sys->setDistribution(trim($list[trim($id_buf[1])]['Name'])); |
| 1002 |
|
} else { |
| 1003 |
|
$this->sys->setDistribution(trim($id_buf[1])); |
| 1004 |
|
} |
| 1005 |
|
if (preg_match('/^DISTRIB_RELEASE="?([^"\n]+)"?/m', $buf, $vers_buf)) { |
| 1006 |
|
$this->sys->setDistribution($this->sys->getDistribution()." ".trim($vers_buf[1])); |
| 1007 |
|
} |
| 1008 |
|
if (preg_match('/^DISTRIB_CODENAME="?([^"\n]+)"?/m', $buf, $vers_buf)) { |
| 1009 |
|
$this->sys->setDistribution($this->sys->getDistribution()." (".trim($vers_buf[1]).")"); |
| 1010 |
|
} |
| 1011 |
|
} |
| 1012 |
|
if (isset($list[trim($id_buf[1])]['Image'])) { |
| 1013 |
|
$this->sys->setDistributionIcon($list[trim($id_buf[1])]['Image']); |
| 1014 |
|
} |
|
@@ 1126-1138 (lines=13) @@
|
| 1123 |
|
if (preg_match('/^DESCRIPTION="?([^"\n]+)"?/m', $buf, $desc_buf) |
| 1124 |
|
&& (trim($desc_buf[1])!=trim($id_buf[1]))) { |
| 1125 |
|
$this->sys->setDistribution(trim($desc_buf[1])); |
| 1126 |
|
} else { |
| 1127 |
|
if (isset($list[trim($id_buf[1])]['Name'])) { |
| 1128 |
|
$this->sys->setDistribution(trim($list[trim($id_buf[1])]['Name'])); |
| 1129 |
|
} else { |
| 1130 |
|
$this->sys->setDistribution(trim($id_buf[1])); |
| 1131 |
|
} |
| 1132 |
|
if (preg_match('/^RELEASE="?([^"\n]+)"?/m', $buf, $vers_buf)) { |
| 1133 |
|
$this->sys->setDistribution($this->sys->getDistribution()." ".trim($vers_buf[1])); |
| 1134 |
|
} |
| 1135 |
|
if (preg_match('/^CODENAME="?([^"\n]+)"?/m', $buf, $vers_buf)) { |
| 1136 |
|
$this->sys->setDistribution($this->sys->getDistribution()." (".trim($vers_buf[1]).")"); |
| 1137 |
|
} |
| 1138 |
|
} |
| 1139 |
|
if (isset($list[trim($id_buf[1])]['Image'])) { |
| 1140 |
|
$this->sys->setDistributionIcon($list[trim($id_buf[1])]['Image']); |
| 1141 |
|
} else { |
|
@@ 1163-1174 (lines=12) @@
|
| 1160 |
|
if (preg_match('/^PRETTY_NAME="?([^"\n]+)"?/m', $buf, $desc_buf) |
| 1161 |
|
&& !preg_match('/\$/', $desc_buf[1])) { //if is not defined by variable |
| 1162 |
|
$this->sys->setDistribution(trim($desc_buf[1])); |
| 1163 |
|
} else { |
| 1164 |
|
if (isset($list[trim($id_buf[1])]['Name'])) { |
| 1165 |
|
$this->sys->setDistribution(trim($list[trim($id_buf[1])]['Name'])); |
| 1166 |
|
} else { |
| 1167 |
|
$this->sys->setDistribution(trim($id_buf[1])); |
| 1168 |
|
} |
| 1169 |
|
if (preg_match('/^VERSION="?([^"\n]+)"?/m', $buf, $vers_buf)) { |
| 1170 |
|
$this->sys->setDistribution($this->sys->getDistribution()." ".trim($vers_buf[1])); |
| 1171 |
|
} elseif (preg_match('/^VERSION_ID="?([^"\n]+)"?/m', $buf, $vers_buf)) { |
| 1172 |
|
$this->sys->setDistribution($this->sys->getDistribution()." ".trim($vers_buf[1])); |
| 1173 |
|
} |
| 1174 |
|
} |
| 1175 |
|
if (isset($list[trim($id_buf[1])]['Image'])) { |
| 1176 |
|
$this->sys->setDistributionIcon($list[trim($id_buf[1])]['Image']); |
| 1177 |
|
} |