aboutsummaryrefslogtreecommitdiff
path: root/clean
diff options
context:
space:
mode:
Diffstat (limited to 'clean')
-rw-r--r--clean/clean.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/clean/clean.cxx b/clean/clean.cxx
index 1071123..102b165 100644
--- a/clean/clean.cxx
+++ b/clean/clean.cxx
@@ -134,7 +134,9 @@ try
using prep_bld_query = prepared_query<build>;
size_t offset (0);
- bld_query bq ("ORDER BY" + bld_query::id.package.name +
+ bld_query bq ("ORDER BY" +
+ bld_query::id.package.tenant + "," +
+ bld_query::id.package.name +
order_by_version_desc (bld_query::id.package.version, false) +
"OFFSET" + bld_query::_ref (offset) + "LIMIT 100");