2 #include "includes/log.h"
3 #include "includes/util.h"
4 #include "includes/copyright.h"
7 #include "includes/copyright_dpkgquery.h"
9 namespace linuxdeploy {
14 std::shared_ptr<ICopyrightFilesManager> ICopyrightFilesManager::getInstance() {
15 if (!util::which("dpkg-query").empty()) {
16 ldLog() << LD_DEBUG << "Using dpkg-query to search for copyright files" << std::endl;
17 return std::make_shared<DpkgQueryCopyrightFilesManager>();
20 ldLog() << LD_DEBUG << "No usable copyright files manager implementation found" << std::endl;