From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: ELPA importer and upstream URLs Date: Mon, 30 Jan 2017 10:09:08 +0100 Message-ID: <871svkhq2z.fsf_-_@gnu.org> References: <20170126123119.18942-1-m.othacehe@gmail.com> <20170126123119.18942-2-m.othacehe@gmail.com> <87efzooo41.fsf@gmail.com> <20170127095929.GA28279@jasmine> <87o9yskdt6.fsf@gmail.com> <87efzo8eex.fsf@gmail.com> <878tpw3xgk.fsf@gnu.org> <871svna6y8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cY7xp-0006BY-SQ for guix-devel@gnu.org; Mon, 30 Jan 2017 04:09:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cY7xk-0004Tc-U0 for guix-devel@gnu.org; Mon, 30 Jan 2017 04:09:29 -0500 In-Reply-To: <871svna6y8.fsf@gmail.com> (Mathieu OTHACEHE's message of "Sat, 28 Jan 2017 10:07:27 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Mathieu OTHACEHE Cc: guix-devel@gnu.org, Alex Kost , Carlo Zancanaro Hello! Mathieu OTHACEHE skribis: >> What needs to be done? We cannot guess the upstream URL just from the >> MELPA one, can we? > > No, but we can maybe use the other fields provided by melpa to find the > github archive url ? Sounds like a good idea. > There's a field ":url" pointing to github when appropriate : > > (log4e . [(20150105 505) nil "provide logging framework for elisp" single= ((:url . "https://github.com/aki2o/log4e") (:keywords "log"))])=20 > > But it seems a bit hacky ... The difficulty is that we need both the Git URL and a commit ID. Is the commit ID available? If we have all of that =E2=80=98guix import elpa=E2=80=99 could just extrac= t that data and generate the right thing. For packages that don=E2=80=99t have a URL/c= ommit associated with them, it could just keep doing the same as now. WDYT? Would you or Carlo like to give it a try? :-) Thanks, Ludo=E2=80=99.