From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:53918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUBnk-00057i-1w for guix-patches@gnu.org; Fri, 24 May 2019 11:08:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUBfu-0003Or-Bj for guix-patches@gnu.org; Fri, 24 May 2019 11:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hUBfu-0003Oj-7s for guix-patches@gnu.org; Fri, 24 May 2019 11:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hUBfu-0006w2-4w for guix-patches@gnu.org; Fri, 24 May 2019 11:00:02 -0400 Subject: [bug#35859] improves output in patch 0010 References: <72F268CC-5FB7-421C-B6F7-B47EAAB823C1@vllmrt.net> In-Reply-To: <72F268CC-5FB7-421C-B6F7-B47EAAB823C1@vllmrt.net> Resent-Message-ID: From: Robert Vollmert Content-Type: multipart/mixed; boundary="Apple-Mail=_27244CB0-7ED2-4422-AFC3-19D07BC4E305" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Message-Id: Date: Fri, 24 May 2019 16:58:57 +0200 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 35859@debbugs.gnu.org --Apple-Mail=_27244CB0-7ED2-4422-AFC3-19D07BC4E305 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Patch 0010 adds a logging statement to hackage import. This is an updated version that provides better output considering optional cabal reading from standard input. --Apple-Mail=_27244CB0-7ED2-4422-AFC3-19D07BC4E305 Content-Disposition: attachment; filename=0010-guix-import-hackage-log-when-we-start-with-a-file.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0010-guix-import-hackage-log-when-we-start-with-a-file.patch" Content-Transfer-Encoding: quoted-printable =46rom=20c2aae7aa837ac8ac578e0cb46e72e26db08dfca4=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Robert=20Vollmert=20=0ADate:=20= Sat,=2018=20May=202019=2003:37:27=20+0200=0ASubject:=20[PATCH=2010/13]=20= guix:=20import:=20hackage:=20log=20when=20we=20start=20with=20a=20file=0A= =0AThis=20helps=20figuring=20out=20what=20errors=20are=20in=20relation=20= to,=20particularly=0Aduring=20recursive=20import.=0A=0A*=20= guix/import/hackage.scm:=20Log=20before=20fetching/parsing=20a=20cabal=20= file.=0A---=0A=20guix/import/hackage.scm=20|=204=20++++=0A=201=20file=20= changed,=204=20insertions(+)=0A=0Adiff=20--git=20= a/guix/import/hackage.scm=20b/guix/import/hackage.scm=0Aindex=20= 0bd9034087..405294d186=20100644=0A---=20a/guix/import/hackage.scm=0A+++=20= b/guix/import/hackage.scm=0A@@=20-319,6=20+319,10=20@@=20symbol=20'true'=20= or=20'false'.=20=20The=20value=20associated=20with=20other=20keys=20has=20= to=20conform=0A=20to=20the=20Cabal=20file=20format=20definition.=20=20= The=20default=20value=20associated=20with=20the=0A=20keys=20\"os\",=20= \"arch\"=20and=20\"impl\"=20is=20\"linux\",=20\"x86_64\"=20and=20\"ghc\"=0A= =20respectively."=0A+=20=20=20(format=20(current-error-port)=0A+=20=20=20= =20=20(if=20port=20"Importing=20haskell=20package=20from=20~a~%"=0A+=20=20= =20=20=20=20=20=20=20=20=20=20=20=20"Importing=20`~a`=20from=20= hackage~%")=0A+=20=20=20=20=20package-name)=0A=20=20=20=20(match=0A=20=20= =20=20=20=20(if=20port=20(read-cabal-and-hash=20port)=0A=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20(hackage-fetch-and-hash=20package-name))=0A--=20= =0A2.21.0=0A=0A= --Apple-Mail=_27244CB0-7ED2-4422-AFC3-19D07BC4E305--