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
Łukasz Nowak
chromebrew
Commits
2ef70287
Commit
2ef70287
authored
Jul 04, 2017
by
lyxell
Committed by
GitHub
Jul 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #846 from jam7/refactor/remove-sha1
Remove sha1 related stuff
parents
74abd072
bd69412e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
crew
crew
+2
-6
packages/heroku.rb
packages/heroku.rb
+4
-4
No files found.
crew
View file @
2ef70287
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
require
'find'
require
'find'
require
'net/http'
require
'net/http'
require
'uri'
require
'uri'
require
'digest/sha
1
'
require
'digest/sha
2
'
require
'json'
require
'json'
require
'fileutils'
require
'fileutils'
...
@@ -365,16 +365,13 @@ def download
...
@@ -365,16 +365,13 @@ def download
uri
=
URI
.
parse
url
uri
=
URI
.
parse
url
filename
=
File
.
basename
(
uri
.
path
)
filename
=
File
.
basename
(
uri
.
path
)
if
source
if
source
sha1sum
=
@
pkg
.
source_sha1
sha256sum
=
@
pkg
.
source_sha256
sha256sum
=
@
pkg
.
source_sha256
else
else
sha1sum
=
@
pkg
.
binary_sha1
[@
device
[:
architecture
]]
if
@
pkg
.
binary_sha1
sha256sum
=
@
pkg
.
binary_sha256
[@
device
[:
architecture
]]
sha256sum
=
@
pkg
.
binary_sha256
[@
device
[:
architecture
]]
if
@
pkg
.
binary_sha256
end
end
Dir
.
chdir
CREW_BREW_DIR
do
Dir
.
chdir
CREW_BREW_DIR
do
system
(
'wget'
,
'--continue'
,
'--no-check-certificate'
,
url
,
'-O'
,
filename
)
system
(
'wget'
,
'--continue'
,
'--no-check-certificate'
,
url
,
'-O'
,
filename
)
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
abort
'Checksum mismatch. :/ Try again.'
.
lightred
unless
Digest
::
SHA1
.
hexdigest
(
File
.
read
(
"./#{filename}"
)
)
==
sha1sum
or
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
"./#{filename}"
)
)
==
sha256sum
Digest
::
SHA256
.
hexdigest
(
File
.
read
(
"./#{filename}"
)
)
==
sha256sum
end
end
puts
"Archive downloaded"
.
lightgreen
puts
"Archive downloaded"
.
lightgreen
...
@@ -688,7 +685,6 @@ def archive_package (pwd)
...
@@ -688,7 +685,6 @@ def archive_package (pwd)
system
"tar cJf #{pwd}/#{pkg_name} *"
system
"tar cJf #{pwd}/#{pkg_name} *"
end
end
Dir
.
chdir
pwd
do
Dir
.
chdir
pwd
do
system
"sha1sum #{pkg_name} > #{pkg_name}.sha1"
system
"sha256sum #{pkg_name} > #{pkg_name}.sha256"
system
"sha256sum #{pkg_name} > #{pkg_name}.sha256"
end
end
puts
"#{pkg_name} is built!"
.
lightgreen
puts
"#{pkg_name} is built!"
.
lightgreen
...
...
packages/heroku.rb
View file @
2ef70287
...
@@ -9,9 +9,9 @@ class Heroku < Package
...
@@ -9,9 +9,9 @@ class Heroku < Package
i686:
"https://drive.google.com/uc?export=download&id=0ByCixsDmZPzxd3NULTRkMWlHQTA"
,
i686:
"https://drive.google.com/uc?export=download&id=0ByCixsDmZPzxd3NULTRkMWlHQTA"
,
x86_64:
"https://drive.google.com/uc?export=download&id=0ByCixsDmZPzxLURkMktpREpDZk0"
x86_64:
"https://drive.google.com/uc?export=download&id=0ByCixsDmZPzxLURkMktpREpDZk0"
})
})
binary_sha
1
({
binary_sha
256
({
armv7l:
"b
48f2f52d11cee4ca6a1878fdf2608a4b10ea53d
"
,
armv7l:
"b
7fab53d3c8cfd42d41c1b07db069c9fd5f7261fcea48fd99114981cf1a293d7
"
,
i686:
"1
b0a736797c9293431b7db0055861fc73657a3fe
"
,
i686:
"1
e73fbff3a10c0c95dd1aa1cf68952a95a330634fa410765962df0396315a42c
"
,
x86_64:
"9
524fbc86c0a19f84f8bbb77c56ce2439d929a92
"
x86_64:
"9
259cd8b5d7aaeb9172142b5956ad767a3d4f1bcf126e51a7f4a8c055e53c068
"
})
})
end
end
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