Re: pkgng suggestion: renaming /usr/sbin/pkg to /usr/sbin/pkg-bootstrap

From: Craig Rodrigues <rodrigc_at_crodrigues.org>
Date: Fri, 31 Aug 2012 15:21:53 -0700
Hi,

I think the details of the patch would need to be worked out a bit,
but I think you are on the right track.
I think it would be nice to:

   (1)  Have deprecation warnings in the legacy pkg_* tools.
          If someone types "pkg_add", maybe warn them that
          it is deprecated, and they should read UPDATING and
          type "pkg help add".

   (2)  If $PKG_DBDIR/local.sqlite exists (usually
/var/db/pkgs/local.sqlite), and someone types a legacy pkg_* command,
          then error out and warn them to use the new "pkg " equivalent.

When I was playing with pkgng, I ran into some confusion
when I typed the old commands after I had migrated my package database to
the new system, so I have seen how this can
be confusing for first-time users.  Any *sensible* anti-foot shooting
measures and useful diagnostics/warnings that
we can put into the tools would help a lot.

--
Craig Rodrigues
rodrigc_at_crodrigues.org

On Sun, Aug 26, 2012 at 4:09 PM, Garrett Cooper <yanegomi_at_gmail.com> wrote:

>
>         Rather than providing a solution for that problem because that's a
> bigger architectural issue (and not my job to solve), I offer this patch I
> quickly hacked up instead as my 2 cents for the discussion on how to make
> users aware that pkg_install is dying/dead, as this is one case that needs
> to be better handled.
> Thanks,
> -Garrett
>
>
Received on Fri Aug 31 2012 - 20:21:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:30 UTC