From owner-freebsd-pkg@FreeBSD.ORG Thu Jun 26 22:28:49 2014 Return-Path: Delivered-To: pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5A0C21DB; Thu, 26 Jun 2014 22:28:49 +0000 (UTC) Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BC1392F8B; Thu, 26 Jun 2014 22:28:48 +0000 (UTC) Received: by mail-wi0-f170.google.com with SMTP id cc10so1849067wib.1 for ; Thu, 26 Jun 2014 15:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=KFqEguvXbyNSVEpWrHTN+DFOxJTrdurch2sn1RElvqc=; b=u8tzpoKCFfW9t2stpwC7g0TFh79gQiNFGHtq0LOUK2lmw6+BoNsFP1xt84Nnq22725 GxQa6e+DO6tX0ZNIoV/IlKg5gL70KmM+G7krk2Wg6LdXYcW/xrScssu/eS6vw6y5lpHN NpIuhquXnS615kQT0d9YOoiTpf2cAwp/o1SKqCWsbx/KI4hlnjr6w/iJninEXiCD6Zd5 08T6Sfi6B80IfiqBqGlNwH1bLyZLa262ZhdrYYLfze7mPSkUT38gCh/QWnO4TPqSreMq McgM3LS4z8OwGwiLM3jjchkg3DlL19K3QP3BF2B+86l4j92+b9jd6RJtO2AIO+vM4k8A shmw== X-Received: by 10.180.82.228 with SMTP id l4mr7297480wiy.78.1403821726072; Thu, 26 Jun 2014 15:28:46 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id fw4sm29128348wib.19.2014.06.26.15.28.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jun 2014 15:28:44 -0700 (PDT) Sender: Baptiste Daroussin Date: Fri, 27 Jun 2014 00:28:42 +0200 From: Baptiste Daroussin To: Bryan Drewery Subject: Re: pkg-install(8), url: "file://" and PKG_CACHEDIR Message-ID: <20140626222841.GH24440@ivaldir.etoilebsd.net> References: <53A5C1D4.3050402@omnilan.de> <53AC4A52.8020502@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ISKrrfpKsPiF35CV" Content-Disposition: inline In-Reply-To: <53AC4A52.8020502@FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: pkg@FreeBSD.org, Harry Schmalzbauer X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2014 22:28:49 -0000 --ISKrrfpKsPiF35CV Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 26, 2014 at 11:29:06AM -0500, Bryan Drewery wrote: > Moving to pkg@FreeBSD.org >=20 > 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=3D/path/to/local-repo pkg install =E2=80=A6' e.g.). > > Such a PKG_CACHEDIR-matching-logic should be enabled by default IMHO. >=20 > Warning, this will stop working in pkg 1.3 and cause many problems in=20 > your repo. The filenames are stored differently in the cachedir and now= =20 > symlinks are used to point to the newly cached files - which will remove= =20 > all of your existing packages. >=20 > > > > 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=20 > https://github.com/freebsd/pkg/issues/697 >=20 > I will take a look before 1.3 release to see if disabling cache for=20 > file:// is straight forward. We're in a feature freeze right now so I=20 > don't want to introduce too much risk. IIRC I already disabled cache for file:// in pkg 1.3 regards, Bapt --ISKrrfpKsPiF35CV Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlOsnpkACgkQ8kTtMUmk6Ew+/QCfbMo9nPMt71gJ/13XXPnnXuIi DgQAn3gRl5Qz7MNKY7k6YBIMDcsg/ceP =9pOQ -----END PGP SIGNATURE----- --ISKrrfpKsPiF35CV--