package_resource script is outdated
Bug #1184197 reported by
Sylvain Pineau
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
Low
|
Sylvain Pineau |
Bug Description
package_resource is outdated
1) packages states/flags definition is out-of-date in the script (precise+)
2) dpkg -l returns a new architecture column by default (quantal+)
1) is a minor issue but 2) removes the description field content by the arch value.
[Expected result]
name: zlib1g
version: 1:1.2.7.
description: compression library - runtime
desired: Install
status: Installed
[Actual result]
version: 1:1.2.7.
status: Installed
desired: Install
name: zlib1g:amd64
description: amd64
Related branches
lp:~sylvain-pineau/checkbox/bug1184197
- Zygmunt Krynicki (community): Approve
- Sylvain Pineau: Needs Resubmitting
- Brendan Donegan (community): Needs Information
-
Diff: 163 lines (+6/-131)3 files modifiedcheckbox-old/debian/changelog (+4/-0)
checkbox-old/jobs/resource.txt.in (+2/-2)
checkbox-old/scripts/package_resource (+0/-129)
Changed in checkbox: | |
status: | In Progress → Fix Committed |
Changed in checkbox: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
1) is pretty easy to fix, the packages states, selection states and flags just need to be updated from the dpkg man page.
To solve 2) I would suggest to use dpkg-query directly to select the field that we need.