Re: Script to set/unset "automatic" status in PKGNG database

2012-08-31 Thread John Nielsen
On Aug 30, 2012, at 11:56 PM, Matthew Seaman wrote: > On 30/08/2012 22:44, John Nielsen wrote: >> After dialog(1) exits the script has a list of packages to mark as >> automatic. Is there a non-SQL way to efficiently get the inverse? >> I.e. the set { all_packages - new_automatic_package_list } ?

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread Matthew Seaman
On 30/08/2012 22:44, John Nielsen wrote: > After dialog(1) exits the script has a list of packages to mark as > automatic. Is there a non-SQL way to efficiently get the inverse? > I.e. the set { all_packages - new_automatic_package_list } ? Use pkg query - it is really quite powerful. This shows

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread John Nielsen
On Aug 30, 2012, at 4:40 PM, Baptiste Daroussin wrote: > Thanks you should be enough, can you provide a git format-patch patch so that > you get your name in the logs :D Here you go. 0001-Add-script-to-interactively-set-un-set-automatic-sta.patch Description: Binary data ___

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread Baptiste Daroussin
On Thu, Aug 30, 2012 at 04:33:09PM -0600, John Nielsen wrote: > On Aug 30, 2012, at 3:28 PM, Baptiste Daroussin wrote: > > > On Thu, Aug 30, 2012 at 03:19:59PM -0600, John Nielsen wrote: > >> I today noticed the "pkg autoremove" command for the first time, which > >> does much the same thing as

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread John Nielsen
On Aug 30, 2012, at 3:28 PM, Baptiste Daroussin wrote: > On Thu, Aug 30, 2012 at 03:19:59PM -0600, John Nielsen wrote: >> I today noticed the "pkg autoremove" command for the first time, which does >> much the same thing as pkg_cutleaves but relies on the "automatic" flag in >> the pkgng databa

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread John Nielsen
On Aug 30, 2012, at 3:29 PM, Julien Laffaye wrote: > On 8/30/2012 11:19 PM, John Nielsen wrote: >> I today noticed the "pkg autoremove" command for the first time, which does >> much the same thing as pkg_cutleaves but relies on the "automatic" flag in >> the pkgng database rather than user inp

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread Baptiste Daroussin
On Thu, Aug 30, 2012 at 11:29:14PM +0200, Julien Laffaye wrote: > On 8/30/2012 11:19 PM, John Nielsen wrote: > > I today noticed the "pkg autoremove" command for the first time, which does > > much the same thing as pkg_cutleaves but relies on the "automatic" flag in > > the pkgng database rather

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread Baptiste Daroussin
Thank you, Would you mind adding create a patch against the git tree of pkgng so that we can include your script into the scripts subdirectory, so that we provide your script along with the next pkg 1.0.1 as a contributed script? regards, Bapt On Thu, Aug 30, 2012 at 03:19:59PM -0600, John Niels

Re: Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread Julien Laffaye
On 8/30/2012 11:19 PM, John Nielsen wrote: I today noticed the "pkg autoremove" command for the first time, which does much the same thing as pkg_cutleaves but relies on the "automatic" flag in the pkgng database rather than user input to determine which "leaf" ports can be removed. Unfortunate

Script to set/unset "automatic" status in PKGNG database

2012-08-30 Thread John Nielsen
I today noticed the "pkg autoremove" command for the first time, which does much the same thing as pkg_cutleaves but relies on the "automatic" flag in the pkgng database rather than user input to determine which "leaf" ports can be removed. Unfortunately, the pkg2ng utility has no way of knowing