Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
fdc1a00c
Commit
fdc1a00c
authored
Nov 15, 2012
by
Sam Stephenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Degrade gracefully (no checksumming or mirrors) if MD5 is unavailable
parent
1043ab60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
bin/ruby-build
+12
-2
No files found.
bin/ruby-build
View file @
fdc1a00c
...
...
@@ -138,12 +138,15 @@ compute_md5() {
local
output
=
"
$(
md5sum
-b
)
"
echo
"
${
output
% *
}
"
else
echo
"error: please install
\`
md5sum
\`
and try again"
>
&2
exit
1
return
1
fi
}
verify_checksum
()
{
if
[
-z
"
$HAS_MD5_SUPPORT
"
]
;
then
return
0
fi
local
filename
=
"
$1
"
if
[
!
-e
"
$filename
"
]
;
then
return
1
...
...
@@ -591,6 +594,13 @@ if [ -n "$RUBY_BUILD_SKIP_MIRROR" ]; then
unset
RUBY_BUILD_MIRROR_URL
fi
if
echo test
| compute_md5
>
/dev/null
;
then
HAS_MD5_SUPPORT
=
1
else
unset
HAS_MD5_SUPPORT
unset
RUBY_BUILD_MIRROR_URL
fi
SEED
=
"
$(
date
"+%Y%m%d%H%M%S"
)
.
$$
"
LOG_PATH
=
"
${
TMP
}
/ruby-build.
${
SEED
}
.log"
RUBY_BIN
=
"
${
PREFIX_PATH
}
/bin/ruby"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment