mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
First lot of compatability fixes
This commit is contained in:
@@ -875,13 +875,13 @@ class PEAR_PackageFile_Generator_v1
|
||||
}
|
||||
//o <install as=..> tags for <file name=... platform=!... install-as=..>
|
||||
if (isset($package['platform'][$file]) &&
|
||||
$package['platform'][$file]{0} == '!') {
|
||||
$package['platform'][$file][0] == '!') {
|
||||
$generic[] = $file;
|
||||
continue;
|
||||
}
|
||||
//o <ignore> tags for <file name=... platform=... install-as=..>
|
||||
if (isset($package['platform'][$file]) &&
|
||||
$package['platform'][$file]{0} != '!') {
|
||||
$package['platform'][$file][0] != '!') {
|
||||
$genericIgnore[] = $file;
|
||||
continue;
|
||||
}
|
||||
@@ -890,7 +890,7 @@ class PEAR_PackageFile_Generator_v1
|
||||
if (isset($package['install-as'][$file])) {
|
||||
continue;
|
||||
}
|
||||
if ($platform{0} != '!') {
|
||||
if ($platform[0] != '!') {
|
||||
//o <ignore> tags for <file name=... platform=...>
|
||||
$genericIgnore[] = $file;
|
||||
}
|
||||
@@ -899,7 +899,7 @@ class PEAR_PackageFile_Generator_v1
|
||||
$oses = $notplatform = $platform = array();
|
||||
foreach ($package['platform'] as $file => $os) {
|
||||
// get a list of oses
|
||||
if ($os{0} == '!') {
|
||||
if ($os[0] == '!') {
|
||||
if (isset($oses[substr($os, 1)])) {
|
||||
continue;
|
||||
}
|
||||
@@ -945,7 +945,7 @@ class PEAR_PackageFile_Generator_v1
|
||||
// <file name=... platform=!other platform install-as=..>
|
||||
if (isset($package['platform'][$file]) &&
|
||||
$package['platform'][$file] != "!$os" &&
|
||||
$package['platform'][$file]{0} == '!') {
|
||||
$package['platform'][$file][0] == '!') {
|
||||
$release[$releaseNum]['filelist']['install'][] =
|
||||
array(
|
||||
'attribs' => array(
|
||||
@@ -970,7 +970,7 @@ class PEAR_PackageFile_Generator_v1
|
||||
//o <ignore> tags for
|
||||
// <file name=... platform=other platform install-as=..>
|
||||
if (isset($package['platform'][$file]) &&
|
||||
$package['platform'][$file]{0} != '!' &&
|
||||
$package['platform'][$file][0] != '!' &&
|
||||
$package['platform'][$file] != $os) {
|
||||
$release[$releaseNum]['filelist']['ignore'][] =
|
||||
array(
|
||||
@@ -996,7 +996,7 @@ class PEAR_PackageFile_Generator_v1
|
||||
continue;
|
||||
}
|
||||
//o <ignore> tags for <file name=... platform=other platform>
|
||||
if ($platform{0} != '!' && $platform != $os) {
|
||||
if ($platform[0] != '!' && $platform != $os) {
|
||||
$release[$releaseNum]['filelist']['ignore'][] =
|
||||
array(
|
||||
'attribs' => array(
|
||||
|
||||
Reference in New Issue
Block a user