From owner-freebsd-pkg@FreeBSD.ORG Mon Nov 24 14:15:59 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EE5F7B3D; Mon, 24 Nov 2014 14:15:59 +0000 (UTC) Received: from mail-ie0-x232.google.com (mail-ie0-x232.google.com [IPv6:2607:f8b0:4001:c03::232]) (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 BDA10A9B; Mon, 24 Nov 2014 14:15:59 +0000 (UTC) Received: by mail-ie0-f178.google.com with SMTP id tp5so8888589ieb.37 for ; Mon, 24 Nov 2014 06:15:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=MCKImG4g3VOAtTcx1c41MtvOCxaDMCrxusgHb31ZLHY=; b=MJW437HXGPTMWqR0rp3K9bZI8qRqHSM0mzHm+zodaT4aKvkGpwb84BMH3q8Qbl5nvP 07TuBjyShqqKqAzFEfLiYlSr3yEzsTYAf5irc2EKcukWujO6K/ayxq7wLoY0vEJVpv6T XLYL/O1cAUIrAJNMr6lH2sX/kmWK+17AIjiqAlbimV+gP8xnFNSLGWPXTjdJu545JQ0O v4Pbdp+s+RDIbEs/eGVIyDsTdn2GQJpqRb8Ou6MDGlBO0P+GS8G4hHBAVKRtUvQO4Nkg LXk5b8GlGJHpHz1V+AfTJUNgowzfiSda2d6NQUWIp++TE7uQvTyEbcSAHVCBLWZfmtV9 Ckww== MIME-Version: 1.0 X-Received: by 10.50.30.202 with SMTP id u10mr11516103igh.35.1416838558973; Mon, 24 Nov 2014 06:15:58 -0800 (PST) Sender: vrwmiller@gmail.com Received: by 10.64.165.73 with HTTP; Mon, 24 Nov 2014 06:15:58 -0800 (PST) In-Reply-To: <547331B1.2020000@freebsd.org> References: <547331B1.2020000@freebsd.org> Date: Mon, 24 Nov 2014 09:15:58 -0500 X-Google-Sender-Auth: aDqGtlAo_KV9A137MJXpJEpGMLE Message-ID: Subject: Re: Create empty package catalog (feature request) From: Rick Miller To: Matthew Seaman Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-pkg@freebsd.org X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 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: Mon, 24 Nov 2014 14:16:00 -0000 On Mon, Nov 24, 2014 at 8:25 AM, Matthew Seaman wrote: > On 11/24/14 13:14, Rick Miller wrote: > > Is it feasible to add a feature/command line argument to `pkg` permitting > > the creation of an empty package catalog? > > What's the use-case for that? In a nutshell... On the client-side, pkg(8) enforces uniqueness of packages within a single repo introducing a scenario where multiple versions of the same package, while the server can and does include these in the repo catalog, is unsupported in a single repo. Consider, however, that a project has explicit dependancies on a previous version of a particular package. `pkg install` consistently chooses the most recent version of a package where the catalog has multiple occurrences of it. A system consisting of consistent, yet limited quantity of package repos implementing an algorithm to select a repo where to distribute newly published packages was deployed. Target clients are pre-configured with this repo set permitting them to specify a particular version of a package. While working around the above limitation, it causes an error on the client when encountering an empty repo citing: pkg: http://hostname.domain.com/repo_mirror/bsd-qa-local-repo8/meta.txz: Not Found pkg: repository bsd-qa-local-repo8 has no meta file, using default settings It's much more involved than this, however, and in the interest of brevity, I attempted to describe it concisely. -- Take care Rick Miller