--- copy.c.old 2004-04-30 21:53:10.000000000 -0600 +++ copy.c 2004-06-29 08:41:37.000000000 -0600 @@ -753,7 +753,7 @@ } if ( update ) { if (msg != NULL) - rc = update(info, msg, 0, 0, current_option_txt); + rc = update(info, msg, size_node(info, node)/2, size_node(info, node), current_option_txt); else rc = update(info, _("Running script"), 0, 0, current_option_txt); if ( !rc ) @@ -862,9 +862,9 @@ rc = copy_script(info, node, xmlNodeListGetString(info->config, node->childs, 1), path, update, from_cdrom, msg); - if (rc == 0 && sz) { - info->installed_bytes += atoi(sz); - size += atoi(sz); + if (size_node(info, node)) { + info->installed_bytes += size_node(info, node); + size += size_node(info, node); } xmlFree(sz); xmlFree(msg); }