Bug 19681 - epm 0.8 -q reports incorrectly package installed if package version specified
Bug#: 19681 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: agriffis@gentoo.org Reported By: nmcc@zizz.org
Component: Applications
URL: 
Summary: epm 0.8 -q reports incorrectly package installed if package version specified
Keywords:  
Status Whiteboard: 
Opened: 2003-04-20 12:54 0000
Description:   Opened: 2003-04-20 12:54 0000
Do epm -q slocate-2.7-r1 when slocate-2.7-r2 is installed returns
slocate-2.7-r1 as if it was installed.



Reproducible: Always
Steps to Reproduce:
1. Find package with older ebuild
2. epm -q package-installed-ver
3. epm -q package-old-ver



Expected Results:  
I believe it should return 'not installed'. This allows scripts to check
postively if a given version is installed eg: checking for old packages in
pakages/All directory. Would also be consistent with RPM output.



I have a patch which makes -q test the version if specified on command line.

------- Comment #1 From Neil McCalden 2003-04-20 12:58:42 0000 -------
Created an attachment (id=10921) [details]
make epm -q  version aware

------- Comment #2 From Aron Griffis (RETIRED) 2003-04-23 21:28:44 0000 -------
Thanks, I fixed this in cvs as 0.8.1.  The patch is much appreciated.

------- Comment #3 From Wayne Davison 2003-04-24 15:25:21 0000 -------
Note that the epm ChangeLog for 0.8.1 refers to bug 19438, not this bug.

Also, I'd love to see my 4-month-old epm patches (see bug 8832 and
bug 12798) get incorporated into epm -- should these bugs be
reassigned to you, Aron?

------- Comment #4 From Aron Griffis (RETIRED) 2003-04-24 15:59:11 0000 -------
Yes, please assign epm bugs to me.  And thanks regarding the ChangeLog, I'll
fix it.