You've already forked macports-base
mirror of
https://github.com/macports/macports-base.git
synced 2026-07-12 18:18:43 -07:00
Check for fetch failure
git-svn-id: https://svn.macports.org/repository/macports/trunk/base@14 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
@@ -42,9 +42,13 @@ proc portfetch::checkfiles {args} {
|
||||
puts "Attempting to fetch from $site"
|
||||
catch {exec curl -o ${distpath}/${distfile} ${site}${distfile} >&@ stdout} result
|
||||
if {$result == 0} {
|
||||
set fetched 1
|
||||
break
|
||||
}
|
||||
}
|
||||
if {![info exists fetched]} {
|
||||
return -1
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user