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
8d569683
Commit
8d569683
authored
Jan 29, 2021
by
Kevin Perkins
Committed by
GitHub
Jan 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crew: Replace '-' with '_' once instead of many times (for #5050) (#5054)
parent
d92e9147
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
crew
crew
+10
-9
lib/const.rb
lib/const.rb
+1
-1
No files found.
crew
View file @
8d569683
...
...
@@ -55,6 +55,7 @@ ENV["XZ_OPT"] = ENV['CREW_XZ_OPT'] || "-7e -T #{CREW_NPROC}"
require_relative
'lib/docopt'
begin
args
=
Docopt
::
docopt
(
DOC
)
args
[
'<name>'
]
=
args
[
'<name>'
].
map
{
|
arg
|
arg
.
gsub
(
'-'
,
'_'
)
}
if
args
[
'<name>'
]
rescue
Docopt
::
Exit
=>
e
if
ARGV
[
0
]
then
if
ARGV
[
0
]
==
'-V'
or
ARGV
[
0
]
==
'--version'
then
...
...
@@ -949,7 +950,7 @@ end
def
build_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
@
pkgName
=
name
.
gsub
(
'-'
,
'_'
)
@
pkgName
=
name
search
@
pkgName
print_current_package
@
opt_verbose
resolve_dependencies_and_build
...
...
@@ -958,7 +959,7 @@ end
def
download_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
@
pkgName
=
name
.
gsub
(
'-'
,
'_'
)
@
pkgName
=
name
search
@
pkgName
print_current_package
@
opt_verbose
download
...
...
@@ -977,7 +978,7 @@ end
def
files_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
@
pkgName
=
name
.
gsub
(
'-'
,
'_'
)
@
pkgName
=
name
search
@
pkgName
print_current_package
files
name
...
...
@@ -995,7 +996,7 @@ end
def
install_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
@
pkgName
=
name
.
gsub
(
'-'
,
'_'
)
@
pkgName
=
name
search
@
pkgName
print_current_package
true
@
pkg
.
build_from_source
=
true
if
@
opt_src
or
@
opt_recursive
...
...
@@ -1017,7 +1018,7 @@ end
def
postinstall_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
@
pkgName
=
name
.
gsub
(
'-'
,
'_'
)
@
pkgName
=
name
search
@
pkgName
,
true
if
@
device
[:
installed_packages
].
any
?
do
|
elem
|
elem
[:
name
]
==
@
pkgName
end
@
pkg
.
postinstall
...
...
@@ -1029,7 +1030,7 @@ end
def
reinstall_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
@
pkgName
=
name
.
gsub
(
'-'
,
'_'
)
@
pkgName
=
name
search
@
pkgName
print_current_package
@
pkg
.
build_from_source
=
true
if
@
opt_src
or
@
opt_recursive
...
...
@@ -1043,13 +1044,13 @@ end
def
remove_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
remove
name
.
gsub
(
'-'
,
'_'
)
remove
name
end
end
def
search_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
regexp_search
name
.
gsub
(
'-'
,
'_'
)
regexp_search
name
end
.
empty
?
and
begin
list_packages
end
...
...
@@ -1061,7 +1062,7 @@ end
def
upgrade_command
(
args
)
args
[
"<name>"
].
each
do
|
name
|
@
pkgName
=
name
.
gsub
(
'-'
,
'_'
)
@
pkgName
=
name
search
@
pkgName
print_current_package
@
pkg
.
build_from_source
=
true
if
@
opt_src
...
...
lib/const.rb
View file @
8d569683
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.7.
3
'
CREW_VERSION
=
'1.7.
4
'
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