From 3ce451196e3000941c6e7e05682649dba6842d91 Mon Sep 17 00:00:00 2001 From: Philippe Ombredanne Date: Thu, 9 Dec 2021 07:35:04 +0100 Subject: [PATCH 1/3] Debian: extend to specify source packages Fix dpkg command syntax and refine definition Signed-off-by: Philippe Ombredanne --- PURL-TYPES.rst | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/PURL-TYPES.rst b/PURL-TYPES.rst index c4e8c91..4de441d 100644 --- a/PURL-TYPES.rst +++ b/PURL-TYPES.rst @@ -130,12 +130,14 @@ deb It is not case sensitive and must be lowercased. - The ``name`` is not case sensitive and must be lowercased. - The ``version`` is the version of the binary (or source) package. -- ``arch`` is the qualifiers key for a package architecture. The special - value ``arch=source`` shall identify a Debian source package (which - usually consists of a Debian Source control file (.dsc) and corresponding - upstream and Debian sources). In this case, ``name`` and ``version`` of the - source package shall be given (both may differ from binary package!), as - printed by ``dpkg-query -f '${source:Package} ${source:Version} -W ``. +- ``arch`` is the qualifiers key for a package architecture. The special value + ``arch=source`` identifies a Debian source package that usually consists of a + Debian Source control file (.dsc) and corresponding upstream and Debian + sources. The ``dpkg-query`` command can print the ``name`` and ``version`` of + the corresponding source package of a binary package:: + + dpkg-query -f '${source:Package} ${source:Version}' -W + - Examples:: pkg:deb/debian/curl@7.50.3-1?arch=i386&distro=jessie From afe6f4682090b2950eee0c5999154e3e0910b74f Mon Sep 17 00:00:00 2001 From: Philippe Ombredanne Date: Thu, 9 Dec 2021 07:36:21 +0100 Subject: [PATCH 2/3] Fix ReST syntax Signed-off-by: Philippe Ombredanne --- PURL-TYPES.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PURL-TYPES.rst b/PURL-TYPES.rst index 4de441d..e9c69cf 100644 --- a/PURL-TYPES.rst +++ b/PURL-TYPES.rst @@ -38,7 +38,7 @@ bitbucket pkg:bitbucket/birkenfeld/pygments-main@244fd47e07d1014f0aed9c cocoapods ------ +--------- ``cocoapods`` for Cocoapods: - The default repository is ``https://cdn.cocoapods.org/`` From 89e5447bac17577d5cb91f63b2897bc1908f74c7 Mon Sep 17 00:00:00 2001 From: Philippe Ombredanne Date: Thu, 9 Dec 2021 22:07:19 +0100 Subject: [PATCH 3/3] Remove extra spaces Reported-by: Gernot Hillier Signed-off-by: Philippe Ombredanne --- PURL-TYPES.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PURL-TYPES.rst b/PURL-TYPES.rst index e9c69cf..6d59a95 100644 --- a/PURL-TYPES.rst +++ b/PURL-TYPES.rst @@ -132,7 +132,7 @@ deb - The ``version`` is the version of the binary (or source) package. - ``arch`` is the qualifiers key for a package architecture. The special value ``arch=source`` identifies a Debian source package that usually consists of a - Debian Source control file (.dsc) and corresponding upstream and Debian + Debian Source control file (.dsc) and corresponding upstream and Debian sources. The ``dpkg-query`` command can print the ``name`` and ``version`` of the corresponding source package of a binary package::