From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 400A67F1CB for ; Tue, 11 Dec 2012 17:48:41 +0100 (CET) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of anil@recoil.org) identity=pra; client-ip=89.16.177.154; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="anil@recoil.org"; x-sender="anil@recoil.org"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of anil@recoil.org) identity=mailfrom; client-ip=89.16.177.154; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="anil@recoil.org"; x-sender="anil@recoil.org"; x-conformance=sidf_compatible Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@dark.recoil.org) identity=helo; client-ip=89.16.177.154; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="anil@recoil.org"; x-sender="postmaster@dark.recoil.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: An8CAINix1BZELGagWdsb2JhbAA7CoNIqCuSaA4BARYmJ4IeAQEEAXkFCwtGRRIGE4d/AwkKqn2QaYthaRGDUWEDlDWBUos3iAQ X-IronPort-AV: E=Sophos;i="4.84,260,1355094000"; d="scan'208";a="165489829" Received: from recoil.dh.bytemark.co.uk (HELO dark.recoil.org) ([89.16.177.154]) by mail4-smtp-sop.national.inria.fr with SMTP; 11 Dec 2012 17:48:40 +0100 Received: (qmail 8367 invoked by uid 634); 11 Dec 2012 16:48:39 -0000 X-Spam-Level: * X-Spam-Check-By: dark.recoil.org Received: from volstagg-0.srg.cl.cam.ac.uk (HELO [10.0.0.83]) (128.232.32.232) (smtp-auth username remote@recoil.org, mechanism cram-md5) by dark.recoil.org (qpsmtpd/0.84) with ESMTPA; Tue, 11 Dec 2012 16:48:39 +0000 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\)) From: Anil Madhavapeddy In-Reply-To: <1355243493.7338.YahooMailNeo@web120405.mail.ne1.yahoo.com> Date: Tue, 11 Dec 2012 16:48:38 +0000 Cc: Thomas Gazagnaire , OCaml mailing-list Content-Transfer-Encoding: 7bit Message-Id: <182A6D66-36B5-40E5-AB52-2BF45E7B4BCC@recoil.org> References: <1355238394.35085.YahooMailNeo@web120401.mail.ne1.yahoo.com> <7EB8D7B0-DC57-435C-A08A-6FB9E2DF27E0@ocamlpro.com> <1355243493.7338.YahooMailNeo@web120405.mail.ne1.yahoo.com> To: Dario Teixeira X-Mailer: Apple Mail (2.1498) X-Virus-Checked: Checked by ClamAV on dark.recoil.org Subject: Re: [Caml-list] Creating fresh OPAM repository On 11 Dec 2012, at 16:31, Dario Teixeira wrote: > Hi, > >> If you want to start an empty local repository in /foo/bar, just run: > >> >> $ opam remote local /foo/bar >> >> (you can replace 'local' by any other name in the previous commands, >> it's just a way to identify the repository) > > Thanks for the prompt reply, Thomas. The command you suggested > does not seem to work, at least with OPAM version 0.8.1. > > The error message suggests that one of -add, -rm, or -list must be given. > However, all the following fail: > > opam remote -add local /foo/bar > opam remote -add local file:///foo/bar > opam remote -add -kind local local /foo/bar > opam remote -add -kind local local file:///foo/bar > > The 'remote' subcommand seems to expect an already formed repository > at the given address. Just mkdir the directory first. There's nothing special about a local remote except that a "packages" directory is expected. $ mkdir -p /foo/bar/packages $ opam remote -add local /foo/bar should (hopefully) do the trick. -anil