1 #ifndef PACKAGE_MANAGER_PACKAGEMANAGERCONFIG_H_
2 #define PACKAGE_MANAGER_PACKAGEMANAGERCONFIG_H_
4 #include <boost/filesystem.hpp>
5 #include <boost/property_tree/ptree_fwd.hpp>
9 #include "utilities/config_utils.h"
12 #define PACKAGE_MANAGER_NONE "none"
13 #define PACKAGE_MANAGER_OSTREE "ostree"
14 #define PACKAGE_MANAGER_DEBIAN "debian"
15 #define PACKAGE_MANAGER_ANDROID "android"
16 #define PACKAGE_MANAGER_OSTREEDOCKERAPP "ostree+docker-app"
19 #define PACKAGE_MANAGER_DEFAULT PACKAGE_MANAGER_OSTREE
21 #define PACKAGE_MANAGER_DEFAULT PACKAGE_MANAGER_NONE
25 std::string type{PACKAGE_MANAGER_DEFAULT};
29 boost::filesystem::path sysroot;
30 std::string ostree_server;
31 boost::filesystem::path packages_file{
"/usr/package.manifest"};
34 bool fake_need_reboot{
false};
37 std::map<std::string, std::string> extra;
39 void updateFromPropertyTree(
const boost::property_tree::ptree& pt);
40 void writeToStream(std::ostream& out_stream)
const;
43 #endif // PACKAGE_MANAGER_PACKAGEMANAGERCONFIG_H_