Codebase list maven-debian-helper / e130b32
Ignore the source files reported as generated by licensecheck when generating debian/copyright Emmanuel Bourg 5 years ago
3 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
55 * Add the DH parameter --buildsystem=maven when a build.xml file is present
66 (Closes: #902587)
77 * 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
810 * Use XZ compression by default when repacking tarballs downloaded from GitHub
911 * Standards-Version updated to 4.1.4
1012 * The generated control file now specifies Standards-Version: 4.1.4
134134 } else if (licenseUrl.contains("http://creativecommons.org/licenses/by-sa/3.0")) {
135135 licenses.add("CC-BY-SA-3.0");
136136 recognized = true;
137 } else if (licenseName.contains("generated file")) {
138 // ignore the files reported as generated by licensecheck
139 recognized = true;
137140 }
138141 return recognized;
139142 }
3838 assertEquals("MPL-1.1", licenses.iterator().next());
3939 licenses.clear();
4040
41 assertTrue(scanner.recognizeLicense(licenses, "GENERATED FILE", ""));
42 assertTrue(licenses.isEmpty());
43 licenses.clear();
44
4145 assertTrue(scanner.recognizeLicense(licenses, "", "https://www.mozilla.org/MPL/2.0/"));
4246 assertEquals("MPL-2.0", licenses.iterator().next());
4347 licenses.clear();