From owner-freebsd-stable@FreeBSD.ORG Thu Jun 26 16:29:11 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C1BADEF8 for ; Thu, 26 Jun 2014 16:29:11 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A8D282E02 for ; Thu, 26 Jun 2014 16:29:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s5QGTBgJ062687 for ; Thu, 26 Jun 2014 16:29:11 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.9/8.14.9/Submit) id s5QGTBkT062683 for freebsd-stable@freebsd.org; Thu, 26 Jun 2014 16:29:11 GMT (envelope-from bdrewery) Received: (qmail 92253 invoked from network); 26 Jun 2014 11:29:09 -0500 Received: from unknown (HELO blah) (freebsd@shatow.net@67.182.131.225) by sweb.xzibition.com with ESMTPA; 26 Jun 2014 11:29:09 -0500 Message-ID: <53AC4A52.8020502@FreeBSD.org> Date: Thu, 26 Jun 2014 11:29:06 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Harry Schmalzbauer Subject: Re: pkg-install(8), url: "file://" and PKG_CACHEDIR References: <53A5C1D4.3050402@omnilan.de> In-Reply-To: <53A5C1D4.3050402@omnilan.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 26 Jun 2014 16:49:44 +0000 Cc: pkg@FreeBSD.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2014 16:29:11 -0000 Moving to pkg@FreeBSD.org On 6/21/14, 12:33 PM, Harry Schmalzbauer wrote: > Dear all, > > today I tried pkg(8) for the first time. > Thanks for all the great work! > > One thing I'm missing is a auto-matching-logic for PKG_CACHEDIR if 'url' > starts with "file://" (in ${PRREFIX}/pkg/repos/mylocalrepo.conf). > > Currently, local available packages will be copied to the local cache > dir by default (if not circumvented by 'env > PKG_CACHEDIR=/path/to/local-repo pkg install …' e.g.). > Such a PKG_CACHEDIR-matching-logic should be enabled by default IMHO. Warning, this will stop working in pkg 1.3 and cause many problems in your repo. The filenames are stored differently in the cachedir and now symlinks are used to point to the newly cached files - which will remove all of your existing packages. > > Maybe it's usefull to have a "pkg-install -K" option, (like -K,--keep > for old pkg_add), to disable the PKG_CACHEDIR-mathcing-logic (for > example if someone provides cd-repo and intentionally wants to keep > packages in PKG_CACHEDIR). > > Anyone else missing that feature? > > Thanks, > > -Harry > > This is somewhat an extension to the feature request in https://github.com/freebsd/pkg/issues/697 I will take a look before 1.3 release to see if disabling cache for file:// is straight forward. We're in a feature freeze right now so I don't want to introduce too much risk. -- Regards, Bryan Drewery