Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2012 21:49:15 -0500
From:      Eitan Adler <eadler@freebsd.org>
To:        Stanislav Sedov <stas@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r243554 - in head/usr.sbin/pkg_install: add create delete info lib updating version
Message-ID:  <CAF6rxgmFhhCVr5M8My%2B8ChFup%2Bp9MKWR94ezVLSq6ctnpYaXaw@mail.gmail.com>
In-Reply-To: <20121128183422.714562856f27371c95d2a84e@FreeBSD.org>
References:  <201211260511.qAQ5B7DQ002346@svn.freebsd.org> <20121128170032.730be5fab68dba2a09aaa14e@FreeBSD.org> <CAF6rxgk8y_g803nLPQd=O0eSH836UnD3SbGx8WM_Lehx=h4U7w@mail.gmail.com> <20121128183422.714562856f27371c95d2a84e@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 28 November 2012 21:34, Stanislav Sedov <stas@freebsd.org> wrote:
> Well, it's not entirely true.  I did end up with local.sqlite because I
> stepped on the landmine of portmgr-pkg becoming the default for some
> reason.  So I did end up with half of my packages being in the pkgng
> sqlite database, and half in standard /var/db/pkg.

How did this happen without running pkg2ng ?

> I had to convert
> them back to standard format by hand, but I still have the sqlite database
> just in case.

This is a rare case and exactly the use case for the environment
variable.  Perhaps you could also just rename the file.

> I guess if you really want to prevent a foot-shooting, you should add
> a message to pkgng sayng in all caps e.g. "You are running experimental
> package manager and there's no migration plan from pkgng to old pkg
> exists." and maybe ask for confirmation.

pkg is not maintained by FreeBSD so I couldn't add this if I wanted to ;)

> I don't really see how this
> message being in pkg_ tools helps to prevent a possible foot-shooting
> at all.

It reminds people that using the pkg_* tools once a conversion is done is wrong.

> At very least, it makes sense to make it conditional on WITH_PKGNG, so this
> code does not end up compiled in if PKGNG is disabled in src.conf.

Interesting idea. Maybe I shall do this.

-- 
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgmFhhCVr5M8My%2B8ChFup%2Bp9MKWR94ezVLSq6ctnpYaXaw>