Package: debcargo
Version: 2.8.4-6
Severity: normal

Dear Maintainer,

The GPL-2.0 identifier is deprecated in favor of GPL-2.0-only[1], but the
latter is not recognized by debcargo, which outputs this in
copyright.debcargo.hint:

  License: GPL-2.0-only
   FIXME (overlay): Unrecognized crate license, please find the full license 
text in the rest of the crate source code and copy-paste it here

1. https://spdx.org/licenses/GPL-2.0-only.html


The following patch should be enough to make it recognized:

```
--- a/src/debian/copyright.rs
+++ b/src/debian/copyright.rs
@@ -268,6 +268,7 @@ fn get_licenses(license: &str) -> Result<Vec<License>> {
         ("bsd-3-clause", include_str!("licenses/BSD-3-Clause")),
         ("cc0-1.0", include_str!("licenses/CC0-1.0")),
         ("gpl-2.0", include_str!("licenses/GPL-2.0")),
+        ("gpl-2.0-only", include_str!("licenses/GPL-2.0")),
         ("gpl-3.0", include_str!("licenses/GPL-3.0")),
         ("isc", include_str!("licenses/ISC")),
         ("lgpl-2.0", include_str!("licenses/LGPL-2.0")),
```

Reply via email to