update_versions: handle <is_wrapper> flag

This commit is contained in:
David Anderson 2013-11-07 11:49:04 -08:00
parent b978b2aa53
commit 50863972b4
1 changed files with 5 additions and 0 deletions

View File

@ -389,6 +389,7 @@ function convert_simplexml($x) {
$v->files = $fds;
$v->dont_throttle = get_bool($x, "dont_throttle");
$v->needs_network = get_bool($x, "needs_network");
$v->is_wrapper = get_bool($x, "is_wrapper");
$v->file_prefix = (string)$x->file_prefix;
return $v;
}
@ -413,6 +414,7 @@ function process_version($a, $v, $p) {
$vers->files = array();
$vers->dont_throttle = false;
$vers->needs_network = false;
$vers->is_wrapper = false;
$vers->file_prefix = false;
}
@ -450,6 +452,9 @@ function process_version($a, $v, $p) {
if ($vers->needs_network) {
$xml .= " <needs_network/>\n";
}
if ($vers->is_wrapper) {
$xml .= " <is_wrapper/>\n";
}
if ($vers->file_prefix != "") {
$xml .= " <file_prefix>$vers->file_prefix</file_prefix>\n";
}