Bug 768512

Summary: rpm -qa --last should print arch
Product: [Fedora] Fedora Reporter: Jeff Bastian <jbastian>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: 16CC: ffesti, jnovy, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 768516 (view as bug list) Environment:
Last Closed: 2013-02-14 00:27:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 768516, 826915, 830699    

Description Jeff Bastian 2011-12-16 20:54:13 UTC
Description of problem:
rpm -qa was modified in the recent past to show the arch:
  $ rpm -qa
  nfs-utils-1.2.5-3.fc16.x86_64
  verne-backgrounds-gnome-15.92.1-1.fc16.noarch
  NetworkManager-0.9.2-1.fc16.x86_64
  ...

But rpm -qa --last does not show the arch:
  $ rpm -qa --last | head
  krb5-libs-1.9.2-4.fc16                        Wed 14 Dec 2011 09:02:32 AM CST
  kernel-3.1.5-1.fc16                           Wed 14 Dec 2011 09:02:29 AM CST
  shared-desktop-ontologies-0.8.1-1.fc16        Wed 14 Dec 2011 09:02:23 AM CST

Please update the --last macro to show the arch also.


Version-Release number of selected component (if applicable):
rpm-4.9.1.2-1.fc16.x86_64

How reproducible:
every time

Steps to Reproduce:
1. rpm -qa
2. rpm -qa --last
  
Actual results:
arch shown in first command but not second

Expected results:
arch shown in both outputs

Additional info:

Comment 1 Jeff Bastian 2011-12-16 20:56:14 UTC
The plain -qa output comes from:
  $ grep query_all /usr/lib/rpm/macros
  %_query_all_fmt		%%{nvra}

The --last macro changes the format to:
  $ grep last /usr/lib/rpm/rpmpopt-4.9.1.2
  rpm	alias --last --qf '%|INSTALLTIME?{%{INSTALLTIME}}:{000000000}| %{NAME}-%{VERSION}-%{RELEASE} %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n' \


This can be fixed by changing
  %{NAME}-%{VERSION}-%{RELEASE}
to just
  %{NVRA}
also in the rpmpopt-4.9.1.2 file.

Comment 3 Fedora End Of Life 2013-01-16 21:51:15 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Fedora End Of Life 2013-02-14 00:27:28 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.