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
Guillaume Hervier
chromebrew
Commits
e75361c9
Commit
e75361c9
authored
Aug 15, 2017
by
Kazushi (Jam) Marukawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add -s, --build-from-source option for install and upgrade
parent
71859338
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
crew
crew
+10
-5
No files found.
crew
View file @
e75361c9
...
...
@@ -14,16 +14,17 @@ Usage:
#{
__FILE__
}
build
[-
k
|--
keep
]
<
name
>...
#{
__FILE__
}
download
<
name
>...
#{
__FILE__
}
help
[<
command
>]
#{
__FILE__
}
install
[-
k
|--
keep
]
<
name
>...
#{
__FILE__
}
install
[-
k
|--
keep
|-
s
|--
build
-
from
-
source
]
<
name
>...
#{
__FILE__
}
remove
<
name
>...
#{
__FILE__
}
search
[-
d
|--
desc
]
[<
name
>...]
#{
__FILE__
}
update
#{
__FILE__
}
upgrade
[-
k
|--
keep
]
[<
name
>...]
#{
__FILE__
}
upgrade
[-
k
|--
keep
|-
s
|--
build
-
from
-
source
]
[<
name
>...]
#{
__FILE__
}
whatprovides
<
name
>...
-
k
--
keep
Keep
extracted
files
as
is
.
-
d
--
desc
Show
extra
information
.
-
h
--
help
Show
this
screen
.
-
k
--
keep
Keep
extracted
files
as
is
.
-
s
--
build
-
from
-
source
Build
from
source
even
if
pre
-
compiled
binary
exists
-
d
--
desc
Show
extra
information
.
-
h
--
help
Show
this
screen
.
version
0.4.3
DOCOPT
...
...
@@ -37,6 +38,7 @@ end
@
opt_keep
=
args
[
"--keep"
]
@
opt_desc
=
args
[
"--desc"
]
@
opt_src
=
args
[
"--build-from-source"
]
ARCH
=
`
uname
-
m
`.
strip
ARCH_LIB
=
if
ARCH
==
'x86_64'
then
'lib64'
else
'lib'
end
...
...
@@ -789,6 +791,7 @@ def install_command (args)
args
[
"<name>"
].
each
do
|
name
|
@
pkgName
=
name
search
@
pkgName
@
pkg
.
build_from_source
=
true
if
@
opt_src
resolve_dependencies_and_install
end
end
...
...
@@ -814,6 +817,8 @@ end
def
upgrade_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
@
pkgName
=
name
search
@
pkgName
@
pkg
.
build_from_source
=
true
if
@
opt_src
upgrade
end
.
empty
?
and
begin
upgrade
...
...
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