Bug 911011 - Report versions of rpms in the PACKAGES variable
Summary: Report versions of rpms in the PACKAGES variable
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: beakerlib
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Petr Muller
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-14 08:55 UTC by Petr Šplíchal
Modified: 2016-06-01 01:44 UTC (History)
3 users (show)

Fixed In Version: beakerlib-1.7-1.fc19
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-22 03:13:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Šplíchal 2013-02-14 08:55:09 UTC
Description of problem:

Currently BeakerLib function rlJournalPrintText supports printing a
single package version in the text log. The output looks like this:

:: [   LOG    ] :: Package       : wget
:: [   LOG    ] :: Installed:    : wget-1.12-1.4.el6.x86_64 

Sometimes there are several packages under test. It would be nice
to see their exact versions directly in the text journal output.
For now the package to be reported is expected in the PACKAGE
environment variable.

I suggest to slightly modify the functionality to support
additional environment variable PACKAGES (containing space
separated list of rpm names) and report version of each of them.
The output could look like this:

:: [   LOG    ] :: Packages      : wget httpd
:: [   LOG    ] :: Installed:    : wget-1.12-1.4.el6.x86_64 
:: [   LOG    ] :: Installed:    : httpd-2.2.15-15.el6_2.1.x86_64

Comment 1 Petr Muller 2013-03-06 16:57:41 UTC
I've used the infrastructure for rlRpmAssert --all and now the journal reports versions of everything either in PACKAGE (one) or PACKAGES (space separated list)

[afri@ghost beakerlib]$ PACKAGES="kernel gcc" PACKAGE=bash rlJournalStart
[afri@ghost beakerlib]$ rlJournalPrintText 

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: TEST PROTOCOL
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   LOG    ] :: Package       : bash
:: [   LOG    ] :: Installed:    : bash-4.2.42-3.fc18.x86_64 
:: [   LOG    ] :: Installed:    : kernel-3.8.1-201.fc18.x86_64 
:: [   LOG    ] :: Installed:    : kernel-3.7.9-205.fc18.x86_64 
:: [   LOG    ] :: Installed:    : kernel-3.7.9-201.fc18.x86_64 
:: [   LOG    ] :: Installed:    : gcc-4.7.2-8.fc18.x86_64 
(...)

http://git.fedorahosted.org/cgit/beakerlib.git/commit/?id=2f649cf268488deecc17369e4daab6985ccaa736

Comment 2 Petr Šplíchal 2013-03-19 08:31:39 UTC
Great, thanks!

Comment 3 Fedora Update System 2013-04-30 15:12:43 UTC
beakerlib-1.7-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/beakerlib-1.7-1.fc19

Comment 4 Fedora Update System 2013-04-30 20:05:50 UTC
Package beakerlib-1.7-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing beakerlib-1.7-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-7067/beakerlib-1.7-1.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-05-22 03:13:27 UTC
beakerlib-1.7-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.