From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: Re: [PATCH] utils: file-extension should work with urls. Date: Wed, 14 Dec 2016 16:26:55 +0100 Message-ID: References: <20161214152507.17677-1-david@craven.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHBTM-0001nN-C8 for guix-devel@gnu.org; Wed, 14 Dec 2016 10:28:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHBTI-0000ju-FW for guix-devel@gnu.org; Wed, 14 Dec 2016 10:28:00 -0500 Received: from mail-qt0-f169.google.com ([209.85.216.169]:36743) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHBTI-0000jo-Az for guix-devel@gnu.org; Wed, 14 Dec 2016 10:27:56 -0500 Received: by mail-qt0-f169.google.com with SMTP id w33so27547157qtc.3 for ; Wed, 14 Dec 2016 07:27:56 -0800 (PST) In-Reply-To: <20161214152507.17677-1-david@craven.ch> 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: guix-devel This patch causes a test failure. Any ideas on how to do it better? I'll push the rust stuff in the meantime, since there is nothing technically wrong with the updater itself. test-name: /*.narinfo for a compressed file location: /home/dvc/guix/tests/publish.scm:218 source: + (test-equal + "/*.narinfo for a compressed file" + '("none" "nar") + (let* ((item (add-text-to-store + %store + "fake.tar.gz" + "This is a fake compressed file.")) + (url (string-append + "http://localhost:6799/" + (store-path-hash-part item) + ".narinfo")) + (body (http-get-port url)) + (info (recutils->alist body))) + (list (assoc-ref info "Compression") + (dirname (assoc-ref info "URL"))))) expected-value: (none nar) actual-value: (gzip nar/gzip) result: FAIL