{# Copyright (C) 2015 The Debsources developers . See the AUTHORS file at the top-level directory of this distribution and at https://salsa.debian.org/qa/debsources/blob/master/AUTHORS License: GNU Affero General Public License, version 3 or above. #} {% set url_prefix = "//" + config.SOURCES_URL + '/copyright' %}

License search

Checksum search

The URL for a SHAsum search is: {{ url_prefix }}/sha256/?checksum=sha256&package=packagename&suite=jessie Specifying a suite or a package name is optional. See example

Path search

The URL for a path search is: {{ url_prefix }}/file/packagename/version/path Both package name and version are required parameters. See example

Package list

Alphabetically

{{ url_prefix }}/list/INT See example

By prefix

{{ url_prefix }}/prefix/prefix See example

A suite parameter can be given to limit listing to a given suite. {{ url_prefix }}/prefix/prefix?suite=suite_name See example

Package versions

You can list the different versions of a package, accessing this URL: {{ url_prefix }}/license/packagename See example

a suite parameter can be given to limit listing to a given suite. {{ url_prefix }}/license/packagename?suite=suite_name See example

License rendering

Debian copyright files can be machine readable (following this standard) or non machine readable.

When accessing one of these URLs you can view the license of a package. If it is machine readable then the app is rendering the license in some fancy manner, otherwise it provides a text dump. {{ url_prefix }}/license/packagename/version or: {{ url_prefix }}/license/packagename/latest to point to the latest known version of the package.
See example and another one.