Ignore the source files reported as generated by licensecheck when generating debian/copyright
Emmanuel Bourg
5 years ago
5 | 5 | * Add the DH parameter --buildsystem=maven when a build.xml file is present |
6 | 6 | (Closes: #902587) |
7 | 7 | * Support GitHub endpoints using the git@github.com:group/name.git format |
8 | * Ignore the source files reported as generated by licensecheck when | |
9 | generating the debian/copyright file | |
8 | 10 | * Use XZ compression by default when repacking tarballs downloaded from GitHub |
9 | 11 | * Standards-Version updated to 4.1.4 |
10 | 12 | * The generated control file now specifies Standards-Version: 4.1.4 |
+3
-0
134 | 134 | } else if (licenseUrl.contains("http://creativecommons.org/licenses/by-sa/3.0")) { |
135 | 135 | licenses.add("CC-BY-SA-3.0"); |
136 | 136 | recognized = true; |
137 | } else if (licenseName.contains("generated file")) { | |
138 | // ignore the files reported as generated by licensecheck | |
139 | recognized = true; | |
137 | 140 | } |
138 | 141 | return recognized; |
139 | 142 | } |
+4
-0
38 | 38 | assertEquals("MPL-1.1", licenses.iterator().next()); |
39 | 39 | licenses.clear(); |
40 | 40 | |
41 | assertTrue(scanner.recognizeLicense(licenses, "GENERATED FILE", "")); | |
42 | assertTrue(licenses.isEmpty()); | |
43 | licenses.clear(); | |
44 | ||
41 | 45 | assertTrue(scanner.recognizeLicense(licenses, "", "https://www.mozilla.org/MPL/2.0/")); |
42 | 46 | assertEquals("MPL-2.0", licenses.iterator().next()); |
43 | 47 | licenses.clear(); |