X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Ftools%2Fmakeappimagetool%2Fcopyright.cpp;fp=cinelerra-5.1%2Ftools%2Fmakeappimagetool%2Fcopyright.cpp;h=ed254a472e349523827df7594c871a4e214d3f56;hb=194ea84742f4d9973b1aad567fe833ca13a8c4f9;hp=0000000000000000000000000000000000000000;hpb=d8393b13b37b8654f0039ec1dba9a71c02af9411;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/tools/makeappimagetool/copyright.cpp b/cinelerra-5.1/tools/makeappimagetool/copyright.cpp new file mode 100644 index 00000000..ed254a47 --- /dev/null +++ b/cinelerra-5.1/tools/makeappimagetool/copyright.cpp @@ -0,0 +1,25 @@ +// local includes +#include "includes/log.h" +#include "includes/util.h" +#include "includes/copyright.h" + +// specializations +#include "includes/copyright_dpkgquery.h" + +namespace linuxdeploy { + namespace core { + namespace copyright { + using namespace log; + + std::shared_ptr ICopyrightFilesManager::getInstance() { + if (!util::which("dpkg-query").empty()) { + ldLog() << LD_DEBUG << "Using dpkg-query to search for copyright files" << std::endl; + return std::make_shared(); + } + + ldLog() << LD_DEBUG << "No usable copyright files manager implementation found" << std::endl; + return nullptr; + } + } + } +}