diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-24 00:25:45 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-24 17:11:47 +0300 |
commit | 6ce19c537bd9de8d3c9821841bc5ed680b762742 (patch) | |
tree | 2a487b1d5ec75b05e3001a461f149e14e5a859a8 /clean/clean.cxx | |
parent | 3363e1239973a66722f681999771964e39a98332 (diff) |
Adapt to inventing package_name type
Diffstat (limited to 'clean/clean.cxx')
-rw-r--r-- | clean/clean.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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<buildable_package>; using prep_pkg_query = prepared_query<buildable_package>; - string package_name; + package_name pkg_name; set<version> 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<buildable_package> ("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 ()) |