diff --git a/bootstrap/coriolisEnv.py b/bootstrap/coriolisEnv.py index f0ab9b89..dea6d07e 100755 --- a/bootstrap/coriolisEnv.py +++ b/bootstrap/coriolisEnv.py @@ -235,13 +235,13 @@ if __name__ == "__main__": coriolisTop = "/usr" sysconfDir = scriptDir shellMessage = "Using system-wide Coriolis 2 (/usr)" - else + else: m = reDevtoolset.match( scriptDir ) if m: coriolisTop = "/opt/rh/devtoolset-%d/root/usr" % m.group('version') sysconfDir = scriptDir shellMessage = "Using system-wide devtoolset-%(v)d Coriolis 2 (/opt/rh/devtoolset-%(v)d/root/usr)" \ - { 'v':m.group('version') } + % { 'v':m.group('version') } elif scriptDir.startswith(os.getenv("HOME")+"/nightly/coriolis-2.x/"): rootDir = os.getenv("HOME") + "/nightly/coriolis-2.x" coriolisTop = "%s/%s/%s/install" % ( rootDir, osType, buildDir ) diff --git a/katana/src/RoutingEvent.cpp b/katana/src/RoutingEvent.cpp index a586963b..05f4980f 100644 --- a/katana/src/RoutingEvent.cpp +++ b/katana/src/RoutingEvent.cpp @@ -602,7 +602,8 @@ namespace Katana { cdebug_log(159,0) << "| " << perpandicular << endl; fsm.addAction( perpandicular, SegmentAction::SelfInsert ); DataNegociate* data = perpandicular->getDataNegociate(); - if (data) data->setState( DataNegociate::Repair ); + if (data and (data->getState() < DataNegociate::Repair)) + data->setState( DataNegociate::Repair ); } } fsm.doActions();