Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Aug 2012 15:21:53 -0700
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        Garrett Cooper <yanegomi@gmail.com>
Cc:        ports@freebsd.org, current@freebsd.org
Subject:   Re: pkgng suggestion: renaming /usr/sbin/pkg to /usr/sbin/pkg-bootstrap
Message-ID:  <CAG=rPVe%2BM%2BSm1OsXxYHiVxQdhtd849ZtZN1C3YJvrHik=Z1ZSw@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1208261557470.83780@toaster.local>
References:  <97612B57-1255-4BB3-A6D3-FC74324C6D67@FreeBSD.org> <20120824081543.GB2998@ithaqua.etoilebsd.net> <50380269.6020003@FreeBSD.org> <20120825000148.GF37867@ithaqua.etoilebsd.net> <50396113.3080607@cyberleo.net> <20120826122649.GA8995@stack.nl> <20120826125846.GD37534@ithaqua.etoilebsd.net> <503A6D4B.9070606@FreeBSD.org> <20120826185810.GB42842@ithaqua.etoilebsd.net> <1346008112.1140.76.camel@revolution.hippie.lan> <alpine.BSF.2.00.1208261429320.38978@wonkity.com> <503A8C17.8050006@FreeBSD.org> <alpine.BSF.2.00.1208261557470.83780@toaster.local>

next in thread | previous in thread | raw e-mail | index | archive | help
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@crodrigues.org

On Sun, Aug 26, 2012 at 4:09 PM, Garrett Cooper <yanegomi@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
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVe%2BM%2BSm1OsXxYHiVxQdhtd849ZtZN1C3YJvrHik=Z1ZSw>