summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2010-09-25 10:47:57 +0100
committerRoger Leigh <rleigh@debian.org>2010-09-25 10:47:57 +0100
commit023322db3bbf5b8d5e739dc0a80ea95077675fff (patch)
tree3542d044f981643d1c0bb215482b3c6de646f458 /bin
parentb151c37c2e0931b9bbbec986d5bc4e2f1ebbb449 (diff)
downloadschroot-023322db3bbf5b8d5e739dc0a80ea95077675fff.tar.gz
schroot::main_base: Correctly handle errors for source chroots
Diffstat (limited to 'bin')
-rw-r--r--bin/schroot/schroot-main-base.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/schroot/schroot-main-base.cc b/bin/schroot/schroot-main-base.cc
index 3be0d46b..e49aab72 100644
--- a/bin/schroot/schroot-main-base.cc
+++ b/bin/schroot/schroot-main-base.cc
@@ -253,7 +253,8 @@ main_base::run_impl ()
if (this->chroots.empty())
{
if (!(this->options->all_chroots == true ||
- this->options->all_sessions == true))
+ this->options->all_sessions == true ||
+ this->options->all_source_chroots == true))
throw error(SCHROOT_CONF, CHROOT_NOTDEFINED);
else
{