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
c8c12431
Commit
c8c12431
authored
Mar 10, 2020
by
Ed Reel
Committed by
GitHub
Mar 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add options to the reinstall command (#3876)
parent
c30b8dc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
crew
crew
+7
-3
lib/const.rb
lib/const.rb
+1
-1
No files found.
crew
View file @
c8c12431
...
...
@@ -28,7 +28,7 @@ Usage:
crew
install
[-
k
|--
keep
]
[-
s
|--
build
-
from
-
source
]
[-
S
|--
recursive
-
build
]
[-
v
|--
verbose
]
<
name
>
...
crew
list
(
available
|
installed
)
crew
postinstall
<
name
>
...
crew
reinstall
[-
v
|--
verbose
]
<
name
>
...
crew
reinstall
[-
k
|--
keep
]
[-
s
|--
build
-
from
-
source
]
[-
S
|--
recursive
-
build
]
[-
v
|--
verbose
]
<
name
>
...
crew
remove
[-
v
|--
verbose
]
<
name
>
...
crew
search
[-
v
|--
verbose
]
[<
name
>
...]
crew
update
...
...
@@ -204,7 +204,10 @@ def help (pkgName)
puts
"The package(s) must be currently installed."
when
"reinstall"
puts
"Remove and install package(s)."
puts
"Usage: crew reinstall [-v|--verbose] <package1> [<package2> ...]"
puts
"Usage: crew reinstall [-k|--keep] [-s|--build-from-source] [-S|--recursive-build] [-v|--verbose] <package1> [<package2> ...]"
puts
"If `-k` or `--keep` is present, the `CREW_BREW_DIR` (#{CREW_BREW_DIR}) directory will remain."
puts
"If `-s` or `--build-from-source` is present, the package(s) will be compiled instead of installed via binary."
puts
"If `-S` or `--recursive-build` is present, the package(s), including all dependencies, will be compiled instead of installed via binary."
puts
"If `-v` or `--verbose` is present, extra information will be displayed."
when
"remove"
puts
"Remove package(s)."
...
...
@@ -950,7 +953,8 @@ def reinstall_command (args)
remove
name
@
pkgName
=
name
search
@
pkgName
install
@
pkg
.
build_from_source
=
true
if
@
opt_src
or
@
opt_recursive
resolve_dependencies_and_install
end
end
...
...
lib/const.rb
View file @
c8c12431
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.3.
0
'
CREW_VERSION
=
'1.3.
1
'
ARCH
=
`uname -m`
.
strip
ARCH_LIB
=
if
ARCH
==
'x86_64'
then
'lib64'
else
'lib'
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