Bug 19019

Summary: pkg_version -c doesn't honor -l (limit status) flag
Product: Base System Reporter: stijn <stijn>
Component: binAssignee: Bruce A. Mah <bmah>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description stijn 2000-06-05 15:00:01 UTC
pkg_version(1) doesn't honor the -l flag if given the -c flag. The command

pkg_version -c

is used to show commands to update packages on the system to the latest
version. The -l flag is used (according to the manpage) to limit the output
of pkg_version to packages older than the index, newer than the index
or at the same version.

However, this functionality cannot be combined, and pkg_version -c will
only work if an overview of newer packages is requested (-l '<').

Fix: Here is a simple patch that defaults to the old behavior but does
respect the -l flag in combination with the -c flag (if -l is listed
after the -c on the command line).
How-To-Repeat: 
I expect

pkg_version -c -l '='

to produce a list of instructions about how to reinstall all current packages,
however this doesn't produce any output.
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-07 14:46:05 UTC
Responsible Changed
From-To: freebsd-bugs->billf

Over to the maintainer.
Comment 2 Bruce A. Mah freebsd_committer freebsd_triage 2000-10-20 07:00:35 UTC
State Changed
From-To: open->closed

Committed, with the addition of a comment.  Thanks! 


Comment 3 Bruce A. Mah freebsd_committer freebsd_triage 2000-10-20 07:00:35 UTC
Responsible Changed
From-To: billf->bmah

MAINTAINER changed.