Mercurial > hg > vamp-plugin-pack
comparison installer.cpp @ 82:11661e61fed0
Comments only
author | Chris Cannam |
---|---|
date | Wed, 19 Feb 2020 17:18:33 +0000 |
parents | ebd0980e33ff |
children | 66a22cdbb50c |
comparison
equal
deleted
inserted
replaced
81:ebd0980e33ff | 82:11661e61fed0 |
---|---|
168 QString gpl = "GNU General Public License"; | 168 QString gpl = "GNU General Public License"; |
169 QString agpl = "GNU Affero General Public License"; | 169 QString agpl = "GNU Affero General Public License"; |
170 QString apache = "Apache License"; | 170 QString apache = "Apache License"; |
171 QString mit = "MIT License"; | 171 QString mit = "MIT License"; |
172 | 172 |
173 // NB these are not expected to correctly identify any licence! We | 173 // NB these are not expected to identify an arbitrary licence! We |
174 // know we have only a limited set here. But we do want to | 174 // know we have only a limited set here. But we do want to |
175 // determine this from the actual licence text included with the | 175 // determine this from the actual licence text included with the |
176 // plugin distribution, not just from e.g. RDF metadata | 176 // plugin distribution, not just from e.g. RDF metadata |
177 | 177 |
178 if (licenceText.contains(gpl.toUpper(), Qt::CaseSensitive)) { | 178 if (licenceText.contains(gpl.toUpper(), Qt::CaseSensitive)) { |
565 auto installed = getLibraryPluginVersions(destination); | 565 auto installed = getLibraryPluginVersions(destination); |
566 } else { | 566 } else { |
567 SVCERR << "Note: library " << library | 567 SVCERR << "Note: library " << library |
568 << " is not yet installed, not comparing versions" << endl; | 568 << " is not yet installed, not comparing versions" << endl; |
569 } | 569 } |
570 | |
571 //!!! if destination exists, move it aside | |
570 | 572 |
571 SVCERR << "Copying " << library.toStdString() << " to " | 573 SVCERR << "Copying " << library.toStdString() << " to " |
572 << destination.toStdString() << "..." << endl; | 574 << destination.toStdString() << "..." << endl; |
573 if (!f.copy(destination)) { | 575 if (!f.copy(destination)) { |
574 SVCERR << "Failed to copy " << library.toStdString() | 576 SVCERR << "Failed to copy " << library.toStdString() |