Merge ~sylvain-pineau/plainbox-provider-resource:restore_package_version into plainbox-provider-resource:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 074311191952376ba792215917eb231c5cabf98b
Merged at revision: 8fef075a1df4f6d0757ac3e3b89a77c5ed7af74c
Proposed branch: ~sylvain-pineau/plainbox-provider-resource:restore_package_version
Merge into: plainbox-provider-resource:master
Diff against target: 12 lines (+1/-1)
1 file modified
jobs/resource.pxu (+1/-1)
Reviewer Review Type Date Requested Status
Jonathan Cave (community) Approve
Review via email: mp+390608@code.launchpad.net

Description of the change

Restore the old package resource output (including version):

$ checkbox-cli run .*package
===========================[ Running Selected Jobs ]============================
--------------[ Running job 1 / 1. Estimated time left: 0:00:01 ]---------------
-----------[ Collect information about installed software packages ]------------
ID: com.canonical.certification::package
Category: com.canonical.plainbox::uncategorised
... 8< -------------------------------------------------------------------------
name: accountsservice
version: 0.6.55-0ubuntu12~20.04.1

name: acl
version: 2.2.53-6

name: acpi-support
version: 0.143

name: acpid
version: 1:2.0.32-1ubuntu1
[...]

To post a comment you must log in.
Revision history for this message
Jonathan Cave (jocave) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/jobs/resource.pxu b/jobs/resource.pxu
2index ed4c7b5..bfde8f3 100644
3--- a/jobs/resource.pxu
4+++ b/jobs/resource.pxu
5@@ -114,7 +114,7 @@ estimated_duration: 1.16
6 plugin: resource
7 command:
8 # shellcheck disable=SC2016
9- dpkg-query -W -f='name: ${Package}\n\n' || true
10+ dpkg-query -W -f='name: ${Package}\nversion: ${Version}\n\n' || true
11 _description: Generates a list of packages
12 _summary: Collect information about installed software packages
13

Subscribers

People subscribed via source and target branches