Commit 9d65e164 authored by claes's avatar claes

Fix in Sev node distribution

parent 8115da80
/* /*
* Proview $Id: wb_pkg.cpp,v 1.19 2008-09-05 09:07:44 claes Exp $ * Proview $Id: wb_pkg.cpp,v 1.20 2008-11-10 08:05:47 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -249,20 +249,25 @@ void wb_pkg::readConfig() ...@@ -249,20 +249,25 @@ void wb_pkg::readConfig()
} }
else if ( strcmp( cdh_Low(line_item[0]), "boot") == 0) { else if ( strcmp( cdh_Low(line_item[0]), "boot") == 0) {
// A Sev node, only node and bootfile // A Sev node, only node and bootfile
if ( !(num == 2)) try {
throw wb_error_str("File corrupt " load_cNameDistribute); if ( !(num == 2))
throw wb_error_str("File corrupt " load_cNameDistribute);
pkg_node &n = getNode( line_item[1]);
// Add ld_node file
sprintf( fname, load_cNameNode, load_cDirectory, n.name(), n.bus());
pkg_pattern pnode( fname, "", 'E');
n.push_back( pnode);
// Add bootfile pkg_node &n = getNode( line_item[1]);
sprintf( fname, load_cNameBoot, load_cDirectory, n.name(), n.bus()); // Add ld_node file
pkg_pattern pboot( fname, "", 'E'); sprintf( fname, load_cNameNode, load_cDirectory, n.name(), n.bus());
n.push_back( pboot); pkg_pattern pnode( fname, "", 'E');
n.push_back( pnode);
// Add bootfile
sprintf( fname, load_cNameBoot, load_cDirectory, n.name(), n.bus());
pkg_pattern pboot( fname, "", 'E');
n.push_back( pboot);
} catch ( wb_error &e) {
if ( e.what() == string("No such node"))
continue;
throw wb_error_str(e.what());
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment