Re: State changes via pkg's scripts

2020-07-08 Thread Dewayne Geraghty
On 8/07/2020 5:23 pm, Baptiste Daroussin wrote:
> On Wed, Jul 08, 2020 at 04:32:34PM +1000, Dewayne Geraghty wrote:
>> Is there a more convenient method to examine a package's scripts than
>> unpacking the manifest file and
>> # cat +MANIFEST | jq -rM '.scripts'
>> ?  As I'd like to know what changes will, or have been applied.
> 
> pkg info --raw-format json -R yourpkg | jq -rM '.scripts'
> 
> So far noone added a better interface yet, it should not be difficult to add
> 
> Best regards,
> Bapt
> 
Unfortunate.  Thank-you, that is helpful.
Kind regards, Dewayne.
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: State changes via pkg's scripts

2020-07-08 Thread Baptiste Daroussin
On Wed, Jul 08, 2020 at 04:32:34PM +1000, Dewayne Geraghty wrote:
> Is there a more convenient method to examine a package's scripts than
> unpacking the manifest file and
> # cat +MANIFEST | jq -rM '.scripts'
> ?  As I'd like to know what changes will, or have been applied.

pkg info --raw-format json -R yourpkg | jq -rM '.scripts'

So far noone added a better interface yet, it should not be difficult to add

Best regards,
Bapt


signature.asc
Description: PGP signature


Re: State changes via pkg's scripts

2020-07-08 Thread Dewayne Geraghty
On 8/07/2020 4:52 pm, Dave Horsfall wrote:
> On Wed, 8 Jul 2020, Dewayne Geraghty wrote:
> 
>> # cat +MANIFEST | jq -rM '.scripts'
> 
> Sorry, but this always pushes one of my buttons.  When using "cat file |
> proc"
> what's wrong with "proc < file"?
> 
> -- Dave

Almost answered the question.  :)

I was being explicit (and mentally lazy) though saving an extra three
characters is better. ;)
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: State changes via pkg's scripts

2020-07-08 Thread Dave Horsfall

On Wed, 8 Jul 2020, Dewayne Geraghty wrote:


# cat +MANIFEST | jq -rM '.scripts'


Sorry, but this always pushes one of my buttons.  When using "cat file | proc"
what's wrong with "proc < file"?

-- Dave
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"