*/
#ifndef ZYPP_TARGET_SYSTEMCHECK_H
#define ZYPP_TARGET_SYSTEMCHECK_H
+#ifndef ZYPP_USE_RESOLVER_INTERNALS
+#error Do not directly include this file!
+#else
#include <iosfwd>
/** Return the file path. */
const Pathname & file();
+ /** Return the directory path. */
+ const Pathname & dir();
+
/** Set configuration file of system requirements
* Should be used for testcase only
*/
bool setFile(const Pathname & file) const;
+ /** Set configuration directory for files of system
+ * requirements.
+ * Should be used for testcase only
+ */
+ bool setDir(const Pathname & dir) const;
+
/** Returns a list of required system capabilities.
*/
const CapabilitySet & requiredSystemCap() const;
private:
/** Ctor taking the file to read. */
SystemCheck();
- bool loadFile() const;
-
+ bool loadFile(Pathname &file, bool reset_caps = true) const;
+ bool loadFiles() const;
};
///////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
} // namespace zypp
///////////////////////////////////////////////////////////////////
+#endif // ZYPP_USE_RESOLVER_INTERNALS
#endif // ZYPP_TARGET_SYSTEMCHECK_H