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
cf2ada53
Commit
cf2ada53
authored
Jul 07, 2021
by
satmandu
Committed by
GitHub
Jul 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow crew to handle git urls (#5933)
* Catch git urls in crew * bump version * simplify
parent
d20067a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
bin/crew
bin/crew
+11
-4
lib/const.rb
lib/const.rb
+1
-1
No files found.
bin/crew
View file @
cf2ada53
...
...
@@ -642,8 +642,9 @@ def download
puts
"No precompiled binary available for your platform, downloading source..."
end
Dir
.
chdir
CREW_BREW_DIR
do
@
git
=
uri
.
scheme
=~
/
git
/
?
true
:
false
Dir
.
chdir
CREW_BREW_DIR
do
case
File
.
basename
(
filename
)
#
Sources
that
download
with
curl
when
/\.
zip
$/
i
,
/\.(
tar
(\.(
gz
|
bz2
|
xz
|
lz
))?|
tgz
|
tbz
|
tpxz
|
txz
)$/
i
,
/\.
deb
$/
i
,
/\.
AppImage
$/
i
...
...
@@ -694,8 +695,16 @@ def download
end
return
{
source
:
source
,
filename
:
filename
}
#
Sources
that
download
with
git
when
/^
SKIP
$/
i
Dir
.
mkdir
@
extract_dir
#
Source
URLs
which
end
with
.
git
are
git
sources
.
when
/\.
git
$/
i
@
git
=
true
end
#
Handle
git
sources
.
if
@
git
==
true
#
Recall
repository
from
cache
if
requested
if
CREW_CACHE_ENABLED
if
@
pkg
.
git_branch
.
nil
?
||
@
pkg
.
git_branch
.
empty
?
...
...
@@ -748,8 +757,6 @@ def download
system
"sha256sum #{cachefile} > #{cachefile}.sha256"
puts
'Git repo cached.'
.
lightgreen
end
when
/^
SKIP
$/
i
Dir
.
mkdir
@
extract_dir
end
end
return
{
source
:
source
,
filename
:
filename
}
...
...
lib/const.rb
View file @
cf2ada53
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.11.
6
'
CREW_VERSION
=
'1.11.
7
'
ARCH_ACTUAL
=
`uname -m`
.
strip
# This helps with virtualized builds on aarch64 machines
...
...
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