diff options
author | Roger Leigh <rleigh@debian.org> | 2009-10-16 23:08:28 +0100 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2009-10-16 23:08:28 +0100 |
commit | 9ec6d78fee4fb3cf94c64910ae2e727f82e7194a (patch) | |
tree | ff28de39eefc4b6af487184f1ef7fab626edd0cd | |
parent | b978d7ed824fbb615e9c3c0daa0b1842c43e353c (diff) | |
download | schroot-9ec6d78fee4fb3cf94c64910ae2e727f82e7194a.tar.gz |
sbuild::session: When run with --begin-session, exit status must be success
-rw-r--r-- | sbuild/sbuild-session.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbuild/sbuild-session.cc b/sbuild/sbuild-session.cc index e4e0c4d1..cafca002 100644 --- a/sbuild/sbuild-session.cc +++ b/sbuild/sbuild-session.cc @@ -624,7 +624,10 @@ session::run_impl () /* Run setup-start chroot setup scripts. */ setup_chroot(chroot, chroot::SETUP_START); if (this->session_operation == OPERATION_BEGIN) - cout << chroot->get_session_id() << endl; + { + cout << chroot->get_session_id() << endl; + this->child_status = EXIT_SUCCESS; + } /* Run recover scripts. */ setup_chroot(chroot, chroot::SETUP_RECOVER); |