projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5dd9559
)
Check for failure when running wget
author
Ian Lynagh
<igloo@earth.li>
Tue, 20 Oct 2009 20:25:16 +0000
(20:25 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Tue, 20 Oct 2009 20:25:16 +0000
(20:25 +0000)
darcs-all
patch
|
blob
|
history
diff --git
a/darcs-all
b/darcs-all
index
69445d0
..
a80e6f8
100644
(file)
--- a/
darcs-all
+++ b/
darcs-all
@@
-118,6
+118,12
@@
sub download {
my @cmd = ("wget", $from, "-O", $to);
message "== running @cmd";
system @cmd;
my @cmd = ("wget", $from, "-O", $to);
message "== running @cmd";
system @cmd;
+ if ($? == -1) {
+ die "Failed to execute wget: $!\n";
+ }
+ elsif ($? != 0) {
+ die "wget failed: $?\n";
+ }
}
sub darcs {
}
sub darcs {