aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-01-10 22:28:03 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-01-10 22:28:03 +0000
commitc1a3eba3407529b26f0a1a81c5f6e0170430b158 (patch)
tree4a2797c0e2d8cfa750824a7c105b605aa90b1c1e
parentb31f51a5f82625aa7e7526aed4f0264721505e83 (diff)
downloadpaludis-c1a3eba3407529b26f0a1a81c5f6e0170430b158.tar.gz
paludis-c1a3eba3407529b26f0a1a81c5f6e0170430b158.tar.xz
Auto-sequential if syncing one repo
-rw-r--r--src/clients/cave/cmd_sync.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_sync.cc b/src/clients/cave/cmd_sync.cc
index 939232f..0f2ad8d 100644
--- a/src/clients/cave/cmd_sync.cc
+++ b/src/clients/cave/cmd_sync.cc
@@ -374,6 +374,9 @@ SyncCommand::run(
p != p_end ; ++p)
repos.insert((*p)->name());
+ if (1 == repos.size())
+ cmdline.a_sequential.set_specified(true);
+
cout << format_general_s(f::sync_heading(), "Starting sync");
if (0 != env->perform_hook(Hook("sync_all_pre")