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

看板FB_current作者時間13年前 (2012/09/08 14:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串72/74 (看更多)
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 > > _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1GIjyiSx (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1GIjyiSx (FB_current)