From owner-svn-src-all@FreeBSD.ORG Thu Nov 29 02:49:48 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5CF51E5 for ; Thu, 29 Nov 2012 02:49:48 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id C04FD8FC17 for ; Thu, 29 Nov 2012 02:49:47 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id j13so13748455lah.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=fLA1wjY6v7dGBink0kZE5x+zp6Es58fIiSweiAEDgROw5i/XZAYgJW8meKKB8UdAfg Dg+WSkGbnfsbLQfzY/LYuxDmWAw9cK8rikqck2o8MJhKRy0woGeqMQEaDH79Rbf8+JtB uOqWS+kR8HtbiY0awfUNweAUrx2Dgl24ZhjN/64PQ6rA5Q5yS+FmChLrwU+raBCgpcoB R5pqrgE4kDdJ99+hjGipwEumcGDFH9OpHtJb5Uhcdc82hEpGWoK/ROoQH2l2+KDUq2VZ AvXQjSL53n42w9B9bM0MNwUdal4UPnpisCqkXEhOV8Smp4h7bRD7dzw2I/eIYZCJ6QtV VsHQ== 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: ALoCoQn/+wR1Qk+EBVUZpb0pYHZ1KAPE8cVQuKgq75SHuSQC4VCRkaC6Yxz5xKnnvWZCtAXTHXWJ Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2012 02:49:48 -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