[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] [PATCH] Fix #1109 by removing directory when an error
From: |
Peter Bex |
Subject: |
[Chicken-hackers] [PATCH] Fix #1109 by removing directory when an error occurs during chicken-install -r |
Date: |
Sun, 3 Aug 2014 21:26:03 +0200 |
User-agent: |
Mutt/1.4.2.3i |
Hi all,
Here's a pretty simple patch for #1109. This simply catches any
exceptions that occur during retrieval of http locations (it already
handles svn and local files differently: there it checks first whether
the source exists before creating the target dir), and then removes
the directory if it didn't exist initially.
As is our rule, I removed the square parens so the patch is a little
bigger than it strictly speaking has to be. I also rewrote the let and
let-values stuff to a simpler receive/let* combination.
Cheers,
Peter
--
http://www.more-magic.net
0001-Fix-1109-chicken-install-r-should-remove-empty-direc.patch
Description: Text document
- [Chicken-hackers] [PATCH] Fix #1109 by removing directory when an error occurs during chicken-install -r,
Peter Bex <=