From 6ce19c537bd9de8d3c9821841bc5ed680b762742 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 24 May 2018 00:25:45 +0300 Subject: Adapt to inventing package_name type --- clean/clean.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clean') diff --git a/clean/clean.cxx b/clean/clean.cxx index 00da55c..1071123 100644 --- a/clean/clean.cxx +++ b/clean/clean.cxx @@ -152,11 +152,11 @@ try using pkg_query = query; using prep_pkg_query = prepared_query; - string package_name; + package_name pkg_name; set package_versions; pkg_query pq ( - pkg_query::build_package::id.name == pkg_query::_ref (package_name)); + pkg_query::build_package::id.name == pkg_query::_ref (pkg_name)); prep_pkg_query pkg_prep_query ( conn->prepare_query ("package-query", pq)); @@ -195,9 +195,9 @@ try // if (!cleanup) { - if (package_name != b.package_name) + if (pkg_name != b.package_name) { - package_name = b.package_name; + pkg_name = b.package_name; package_versions.clear (); for (auto& p: pkg_prep_query.execute ()) -- cgit v1.1