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
bd69412e
Commit
bd69412e
authored
Jul 03, 2017
by
Kazushi (Jam) Marukawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change crew to remove sha1 related stuff.
parent
ae06822f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
crew
crew
+2
-6
No files found.
crew
View file @
bd69412e
...
...
@@ -2,7 +2,7 @@
require
'find'
require
'net/http'
require
'uri'
require
'digest/sha
1
'
require
'digest/sha
2
'
require
'json'
require
'fileutils'
...
...
@@ -365,16 +365,13 @@ def download
uri
=
URI
.
parse
url
filename
=
File
.
basename
(
uri
.
path
)
if
source
sha1sum
=
@
pkg
.
source_sha1
sha256sum
=
@
pkg
.
source_sha256
else
sha1sum
=
@
pkg
.
binary_sha1
[@
device
[:
architecture
]]
if
@
pkg
.
binary_sha1
sha256sum
=
@
pkg
.
binary_sha256
[@
device
[:
architecture
]]
if
@
pkg
.
binary_sha256
sha256sum
=
@
pkg
.
binary_sha256
[@
device
[:
architecture
]]
end
Dir
.
chdir
CREW_BREW_DIR
do
system
(
'wget'
,
'--continue'
,
'--no-check-certificate'
,
url
,
'-O'
,
filename
)
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA1
.
hexdigest
(
File
.
read
(
"./#{filename}"
)
)
==
sha1sum
or
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
"./#{filename}"
)
)
==
sha256sum
end
puts
"Archive downloaded"
.
lightgreen
...
...
@@ -688,7 +685,6 @@ def archive_package (pwd)
system
"tar cJf #{pwd}/#{pkg_name} *"
end
Dir
.
chdir
pwd
do
system
"sha1sum #{pkg_name} > #{pkg_name}.sha1"
system
"sha256sum #{pkg_name} > #{pkg_name}.sha256"
end
puts
"#{pkg_name} is built!"
.
lightgreen
...
...
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