Correct logic for schroot creation
authorSam Hartman <hartmans@debian.org>
Tue, 16 Nov 2010 16:54:06 +0000 (11:54 -0500)
committerSam Hartman <hartmans@debian.org>
Tue, 16 Nov 2010 16:54:06 +0000 (11:54 -0500)
builder

diff --git a/builder b/builder
index 2bc3a21..0c9fdda 100755 (executable)
--- a/builder
+++ b/builder
@@ -28,7 +28,7 @@ class Schroot(object):
         '''Initialize a new schroot option from the named
         schroot. Unless the named schroot starts with session:, then a
         new session schroot is created.'''
-        if name.startswith('session:'):
+        if not name.startswith('session:'):
             self.name = command_output(('schroot', '-b',
                                         '-c', name))
             self.end_session = True