Don't display suggests with --requires

2013-08-26 Thread Per Øyvind Karlsen
This patch fixes so that soft dependencies won't be displayed with 'rpm -q
--requires', only with 'rpm -q --suggests'

--
Regards,
Per Øyvind


rpm-5.4.8-dont-show-suggests-with-requires.patch
Description: Binary data


Re: Don't display suggests with --requires

2013-08-26 Thread Jeffrey Johnson

On Aug 26, 2013, at 2:21 PM, Per Øyvind Karlsen wrote:

 This patch fixes so that soft dependencies won't be displayed with 'rpm -q 
 --requires', only with 'rpm -q --suggests'
 

This patch can be done (by masking RPMSENSE_MISSINGOK using awk) without
changing any C code.

I'm also very reluctant to change existing/useful behavior of --requires with
grep -v because it breaks compatibility behavior (that I rely on while 
developing)
on systems with @rpm.org installed.

73 de Jeff

 --
 Regards,
 Per Øyvind
 rpm-5.4.8-dont-show-suggests-with-requires.patch

__
RPM Package Managerhttp://rpm5.org
Developer Communication Listrpm-devel@rpm5.org


Re: Don't display suggests with --requires

2013-08-26 Thread Per Øyvind Karlsen
2013/8/26 Jeffrey Johnson n3...@me.com


 On Aug 26, 2013, at 2:21 PM, Per Øyvind Karlsen wrote:

  This patch fixes so that soft dependencies won't be displayed with 'rpm
 -q --requires', only with 'rpm -q --suggests'
 

 This patch can be done (by masking RPMSENSE_MISSINGOK using awk) without
 changing any C code.

Feel free to provide a better solution. :)


 I'm also very reluctant to change existing/useful behavior of --requires
 with
 grep -v because it breaks compatibility behavior (that I rely on while
 developing)
 on systems with @rpm.org installed.

IIRC rpm.org hasn't implemented support for RPMSENSE_MISSINGOK on
dependencies, have they?
Ie. isn't there's some incompatibilities in place already? :o)

Well, you know better than me, at least behaviour introduced by this patch
is what's been preferred by cooker users. :)

--
Regards,
Per Øyvind


Re: Don't display suggests with --requires

2013-08-26 Thread Jeffrey Johnson

On Aug 26, 2013, at 3:06 PM, Per Øyvind Karlsen wrote:

 2013/8/26 Jeffrey Johnson n3...@me.com
 
 On Aug 26, 2013, at 2:21 PM, Per Øyvind Karlsen wrote:
 
  This patch fixes so that soft dependencies won't be displayed with 'rpm -q 
  --requires', only with 'rpm -q --suggests'
 
 
 This patch can be done (by masking RPMSENSE_MISSINGOK using awk) without
 changing any C code.
 Feel free to provide a better solution. :) 

Expecting me to address your needs if foolish. I have other tasks to do
than write and test an awk script.

 
 I'm also very reluctant to change existing/useful behavior of --requires with
 grep -v because it breaks compatibility behavior (that I rely on while 
 developing)
 on systems with @rpm.org installed.
 IIRC rpm.org hasn't implemented support for RPMSENSE_MISSINGOK on 
 dependencies, have they?
 Ie. isn't there's some incompatibilities in place already? :o)

You will need to address the issue with @rpm.org, not here.

Meanwhile all the reasoning and the complete implementation
was done a long time ago. Using a bit that other implementations/distros
choose not to honor has nothing to do with what is implemented, nor
what might need to be displayed using rpm -q.

 
 Well, you know better than me, at least behaviour introduced by this patch is 
 what's been preferred by cooker users. :)
 

And this isn't the place to honk you cooker warez. You submitted a
patch for upstream inclusion, and you have my reply.

73 de Jeff
 --
 Regards,
 Per Øyvind