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
488b60b9
Commit
488b60b9
authored
May 06, 2021
by
satmandu
Committed by
GitHub
May 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crew deps (#5733)
* crew deps * Add deps * bump * Add deps to readme
parent
71f495c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
12 deletions
+28
-12
README.md
README.md
+1
-0
bin/crew
bin/crew
+26
-11
lib/const.rb
lib/const.rb
+1
-1
No files found.
README.md
View file @
488b60b9
...
...
@@ -79,6 +79,7 @@ Where available commands are:
*
build -
`build package(s) from source and store the archive and checksum in the current working directory`
*
const -
`display constant(s)`
*
deps -
`display dependencies of package(s)`
*
download -
`download package(s) to CREW_BREW_DIR (/usr/local/tmp/crew by default), but don't install`
*
files -
`display installed files of package(s)`
*
help -
`get information about command usage`
...
...
bin/crew
View file @
488b60b9
...
...
@@ -23,6 +23,7 @@ Chromebrew - Package manager for Chrome OS http://skycocker.github.io/chromebrew
Usage
:
crew
build
[
options
]
[-
k
|--
keep
]
<
name
>
...
crew
const
[
options
]
[<
name
>
...]
crew
deps
[
options
]
<
name
>
...
crew
download
[
options
]
<
name
>
...
crew
files
[
options
]
<
name
>
...
crew
help
[<
command
>]
...
...
@@ -73,7 +74,7 @@ ENV["XZ_OPT"] = ENV['CREW_XZ_OPT'] || "-7e -T #{CREW_NPROC}"
CURL
=
ENV
[
'CURL'
]
||
'curl'
#
All
available
crew
commands
.
@
cmds
=
[
"build"
,
"const"
,
"download"
,
"files"
,
"help"
,
"install"
,
"list"
,
"postinstall"
,
"reinstall"
,
"remove"
,
"search"
,
"update"
,
"upgrade"
,
"whatprovides"
]
@
cmds
=
[
"build"
,
"const"
,
"d
eps"
,
"d
ownload"
,
"files"
,
"help"
,
"install"
,
"list"
,
"postinstall"
,
"reinstall"
,
"remove"
,
"search"
,
"update"
,
"upgrade"
,
"whatprovides"
]
#
Parse
arguments
using
docopt
require_relative
'../lib/docopt'
...
...
@@ -322,6 +323,9 @@ def help(pkgName)
puts
"Display constant(s)."
puts
"Usage: crew const [<const1> <const2> ...]"
puts
"If no constants are provided, all constants will be displayed."
when
"deps"
puts
"Display dependencies of package(s)."
puts
"Usage: crew deps <package1> [<package2> ...]"
when
"download"
puts
"Download package(s)."
puts
"Usage: crew download [-v|--verbose] <package1> [<package2> ...]"
...
...
@@ -982,7 +986,7 @@ def expand_dependencies
# check all dependencies recursively
check_deps.each do |dep|
# build unique dependencies list
unless @dependencies.include?(dep) || dep == @pkgName
unless @dependencies
&
.include?(dep) || dep == @pkgName
@dependencies << dep
search dep, true
push_dependencies
...
...
@@ -1256,15 +1260,6 @@ def build_command(args)
end
end
def
download_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
@
pkgName
=
name
search
@
pkgName
print_current_package
@
opt_verbose
download
end
end
def
const_command
(
args
)
unless
args
[
"<name>"
].
empty
?
args
[
"<name>"
].
each
do
|
name
|
...
...
@@ -1275,6 +1270,26 @@ def const_command(args)
end
end
def
deps_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
@
dependencies
=
[]
@
pkgName
=
name
search
@
pkgName
print_current_package
expand_dependencies
puts
@
dependencies
end
end
def
download_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
@
pkgName
=
name
search
@
pkgName
print_current_package
@
opt_verbose
download
end
end
def
files_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
@
pkgName
=
name
...
...
lib/const.rb
View file @
488b60b9
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.9.
4
'
CREW_VERSION
=
'1.9.
5
'
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