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
35515c65
Commit
35515c65
authored
Dec 30, 2019
by
Ed Reel
Committed by
Chris Thurber
Dec 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add reinstall command (#3730)
parent
1c03c690
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
README.md
README.md
+1
-0
crew
crew
+15
-1
lib/const.rb
lib/const.rb
+1
-1
No files found.
README.md
View file @
35515c65
...
...
@@ -90,6 +90,7 @@ Where available commands are:
*
install -
`install package(s) along with dependencies after prompting for confirmation`
*
list -
`available or installed packages`
*
postinstall -
`display postinstall messages of package(s)`
*
reinstall -
`remove and install package(s)`
*
remove -
`remove package(s)`
*
search -
`look for package(s)`
*
update -
`update crew itself`
...
...
crew
View file @
35515c65
...
...
@@ -28,6 +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
remove
[-
v
|--
verbose
]
<
name
>
...
crew
search
[-
v
|--
verbose
]
[<
name
>
...]
crew
update
...
...
@@ -206,6 +207,10 @@ def help (pkgName)
puts
"Display postinstall messages of package(s)."
puts
"Usage: crew postinstall <package1> [<package2> ...]"
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
"If `-v` or `--verbose` is present, extra information will be displayed."
when
"remove"
puts
"Remove package(s)."
puts
"Usage: crew remove [-v|--verbose] <package1> [<package2> ...]"
...
...
@@ -240,7 +245,7 @@ def help (pkgName)
puts
"Usage: crew whatprovides <pattern> ..."
puts
"The <pattern> is a search string which can contain regular expressions."
else
puts
"Available commands: build, const, download, files, install, list ,remove, search, update, upgrade, whatprovides"
puts
"Available commands: build, const, download, files, install, list
, postinstall, reinstall
,remove, search, update, upgrade, whatprovides"
end
end
...
...
@@ -943,6 +948,15 @@ def postinstall_command (args)
end
end
def
reinstall_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
remove
name
@
pkgName
=
name
search
@
pkgName
install
end
end
def
remove_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
remove
name
...
...
lib/const.rb
View file @
35515c65
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.2.
6
'
CREW_VERSION
=
'1.2.
7
'
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