aboutsummaryrefslogtreecommitdiff
path: root/clean/clean.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-30 22:50:16 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-31 01:11:00 +0300
commit52dcc79ed954c0375852d2194438dcdbbf98c2dd (patch)
treeb406a2ef649556997357f788e6c09ca8cdeb1bb7 /clean/clean.cxx
parentd6a34b68d4667d4b99c1e76d63604a7bc1c9c3dd (diff)
Fix brep-clean to traverse all build objects
Diffstat (limited to 'clean/clean.cxx')
-rw-r--r--clean/clean.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/clean/clean.cxx b/clean/clean.cxx
index fbb4d23..bedc886 100644
--- a/clean/clean.cxx
+++ b/clean/clean.cxx
@@ -179,7 +179,7 @@ try
prep_pkg_query pkg_prep_query (
pkg_conn->prepare_query<package_version> ("package-version-query", pq));
- while (true)
+ for (bool ne (true); ne; )
{
// Start the build database transaction.
//
@@ -189,7 +189,7 @@ try
//
auto builds (bld_prep_query.execute ());
- if (!builds.empty ())
+ if ((ne = !builds.empty ()))
{
// Start the package database transaction.
//
@@ -252,9 +252,6 @@ try
}
bt.commit ();
-
- if (builds.empty ())
- break;
}
return 0;