Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
f406922a
Commit
f406922a
authored
Aug 03, 2014
by
Pat Gunn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update crew
Modify the download method to specify an output filename
parent
3379bdcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
crew
crew
+1
-1
No files found.
crew
View file @
f406922a
...
...
@@ -153,7 +153,7 @@ def download
sha1sum
=
@pkg
.
binary_sha1
[
@device
[
:architecture
]]
end
Dir
.
chdir
CREW_BREW_DIR
do
system
(
'wget'
,
'--content-disposition'
,
'--no-check-certificate'
,
'-N'
,
url
)
system
(
'wget'
,
'--content-disposition'
,
'--no-check-certificate'
,
'-N'
,
url
,
'-O'
,
filename
)
abort
'Checksum mismatch :/ try again'
unless
Digest
::
SHA1
.
hexdigest
(
File
.
read
(
"./
#{
filename
}
"
)
)
==
sha1sum
end
puts
"Archive downloaded"
...
...
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