From 52dcc79ed954c0375852d2194438dcdbbf98c2dd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 30 May 2017 22:50:16 +0300 Subject: Fix brep-clean to traverse all build objects --- clean/clean.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'clean') 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-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; -- cgit v1.1