From owner-svn-src-head@FreeBSD.ORG Thu Nov 29 02:49:48 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D85DEE8 for ; Thu, 29 Nov 2012 02:49:48 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4B26C8FC08 for ; Thu, 29 Nov 2012 02:49:47 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id go10so11169091lbb.13 for ; Wed, 28 Nov 2012 18:49:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=OM6+Nw0d9vdPEeLg+mezkTEkFOtkjTi/hcgTAEjFomM=; b=T+HsQciv9BU/CbCZWzQpT0dKlxVWH1FvJBUzbfNaZzOK1Jjm5DEOCQlbKVOZGAIJ2D 1OoP1ZZMdvxLAeu1dFFo5Cnv2Bae95hMXK4OL0Fpeq1OBKRXDeRN/oQc3HZYwmi/hjbh RlZsMd/4QeYmSCU6I7wDdm2yzq08sVAToB2N8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=OM6+Nw0d9vdPEeLg+mezkTEkFOtkjTi/hcgTAEjFomM=; b=n8yKWnLosU17PQq7uOQAhd5BX6vmuCIQXr6Y1IcRABo++87w7EPnqkS9ie51I6GvbG 9lKYwLRrUB4m51BTxDGn2EsVojmHq4w408bh3eNZohG180pRKjCMOL4q0lFFkHxx7JL9 VugfrPzCHs3kpPJ5bI/zVTCI8QpLsOzgnctIx6qn9EIQj6v20QBi2oujbB7UwqMo+keu ZRJTETKk1fcpi+vFCCRDUdGIcxJHkO2rSDzPI6kw1f25RSFntI3USrISlo8zsiuhVbY+ tWk+KJ3nj1LUXGyiyUAgUWfdOQXVUbcxz8aYhPpP0kwl++cDX1R7rYf90iCPh32Qhkxp 7EJA== Received: by 10.112.103.135 with SMTP id fw7mr4182156lbb.17.1354157386591; Wed, 28 Nov 2012 18:49:46 -0800 (PST) MIME-Version: 1.0 Sender: lists@eitanadler.com Received: by 10.112.154.168 with HTTP; Wed, 28 Nov 2012 18:49:15 -0800 (PST) In-Reply-To: <20121128183422.714562856f27371c95d2a84e@FreeBSD.org> References: <201211260511.qAQ5B7DQ002346@svn.freebsd.org> <20121128170032.730be5fab68dba2a09aaa14e@FreeBSD.org> <20121128183422.714562856f27371c95d2a84e@FreeBSD.org> From: Eitan Adler Date: Wed, 28 Nov 2012 21:49:15 -0500 X-Google-Sender-Auth: vG7KSl0E-pOx1DO1jUGGp4pMLrw Message-ID: Subject: Re: svn commit: r243554 - in head/usr.sbin/pkg_install: add create delete info lib updating version To: Stanislav Sedov Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQm8S6eT9OjvnxI6JEPvlN83A/88hkw/nSZNa4V3P51zFhZ+klSx+A6aGwVSF6oKz6W8vjCL Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2012 02:49:49 -0000 On 28 November 2012 21:34, Stanislav Sedov 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