MatN work for versatile appimage creation for all types of os
[goodguy/cinelerra.git] / cinelerra-5.1 / tools / makeappimagetool / copyright.cpp
1 // local includes
2 #include "includes/log.h"
3 #include "includes/util.h"
4 #include "includes/copyright.h"
5
6 // specializations
7 #include "includes/copyright_dpkgquery.h"
8
9 namespace linuxdeploy {
10     namespace core {
11         namespace copyright {
12             using namespace log;
13
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>();
18                 }
19
20                 ldLog() << LD_DEBUG << "No usable copyright files manager implementation found" << std::endl;
21                 return nullptr;
22             }
23         }
24     }
25 }