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
e506dc98
Commit
e506dc98
authored
Mar 14, 2021
by
Ed Reel
Committed by
GitHub
Mar 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update crew command (#5416)
parent
4fe3cb8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
crew
crew
+7
-8
lib/const.rb
lib/const.rb
+1
-1
No files found.
crew
View file @
e506dc98
...
...
@@ -148,11 +148,10 @@ end
def
list_available
Dir
[
CREW_PACKAGES_PATH
+
'*.rb'
].
each
do
|
filename
|
@
notInstalled
=
true
packageName
=
File
.
basename
filename
,
'.rb'
@
notInstalled
=
nil
if
File
.
exists
?
CREW_META_PATH
+
packageName
+
'.filelist'
if
@
notInstalled
pkgName
=
File
.
basename
filename
,
'.rb'
notInstalled
=
true
pkgName
=
File
.
basename
filename
,
'.rb'
notInstalled
=
false
if
File
.
exists
?
CREW_META_PATH
+
pkgName
+
'.filelist'
if
notInstalled
set_package
pkgName
,
filename
if
@
pkg
.
compatibility
.
include
?
'all'
or
@
pkg
.
compatibility
.
include
?
ARCH
puts
pkgName
...
...
@@ -164,9 +163,9 @@ def list_available
end
def
list_installed
Dir
[
CREW_META_PATH
+
'*.directorylist'
].
sort
.
map
{
|
f
|
Dir
[
CREW_META_PATH
+
'*.directorylist'
].
sort
.
map
do
|
f
|
File
.
basename
(
f
,
'.directorylist'
).
lightgreen
}
end
end
def
list_compatible
(
compat
=
true
)
...
...
@@ -213,7 +212,7 @@ end
def
regexp_search
(
pkgPat
)
re
=
Regexp
.
new
(
pkgPat
,
true
)
results
=
Dir
[
CREW_PACKAGES_PATH
+
'.rb'
].
sort
\
results
=
Dir
[
CREW_PACKAGES_PATH
+
'
*
.rb'
].
sort
\
.
select
{
|
f
|
File
.
basename
(
f
,
'.rb'
)
=~
re
}
\
.
each
{
|
f
|
print_package
(
f
,
@
opt_verbose
)
}
if
results
.
empty
?
...
...
lib/const.rb
View file @
e506dc98
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.7.1
4
'
CREW_VERSION
=
'1.7.1
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