From 7f8e76ad7ffa038d561dfde0c5e4e357c526eefe Mon Sep 17 00:00:00 2001 From: Andy Doan Date: Thu, 24 Sep 2020 15:46:02 -0500 Subject: [PATCH] packagemanage: Fix output of pacman config When the config is dumped out for the docker-app manager, the custom config key/vals are printed val=key. eg: "/tmp/sota/docker-apps" = docker_apps_root This fixes the issue. Signed-off-by: Andy Doan --- src/libaktualizr/package_manager/packagemanagerconfig.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libaktualizr/package_manager/packagemanagerconfig.cc b/src/libaktualizr/package_manager/packagemanagerconfig.cc index 19d69062d9..6f5936653f 100644 --- a/src/libaktualizr/package_manager/packagemanagerconfig.cc +++ b/src/libaktualizr/package_manager/packagemanagerconfig.cc @@ -40,6 +40,6 @@ void PackageConfig::writeToStream(std::ostream& out_stream) const { // note that this is imperfect as it will not print default values deduced // from users of `extra` for (const auto& e : extra) { - writeOption(out_stream, e.first, e.second); + writeOption(out_stream, e.second, e.first); } }