Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2014 00:28:42 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Bryan Drewery <bdrewery@FreeBSD.org>
Cc:        pkg@FreeBSD.org, Harry Schmalzbauer <freebsd@omnilan.de>
Subject:   Re: pkg-install(8), url: "file://" and PKG_CACHEDIR
Message-ID:  <20140626222841.GH24440@ivaldir.etoilebsd.net>
In-Reply-To: <53AC4A52.8020502@FreeBSD.org>
References:  <53A5C1D4.3050402@omnilan.de> <53AC4A52.8020502@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140626222841.GH24440>