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
9cd537c6
Commit
9cd537c6
authored
May 29, 2021
by
Ed Reel
Committed by
GitHub
May 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crew list available and crew list compatible (#5823)
parent
0bb67f78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
bin/crew
bin/crew
+7
-8
lib/const.rb
lib/const.rb
+1
-1
No files found.
bin/crew
View file @
9cd537c6
...
...
@@ -192,8 +192,6 @@ def list_available
end
if
@
pkg
.
compatibility
&.
include
?
'all'
or
@
pkg
.
compatibility
&.
include
?
ARCH
puts
pkgName
else
puts
pkgName
.
lightred
end
end
end
...
...
@@ -222,17 +220,18 @@ def list_installed
end
def
list_compatible
(
compat
=
true
)
generate_compatible
Dir
[
CREW_PACKAGES_PATH
+
'*.rb'
].
each
do
|
filename
|
pkgName
=
File
.
basename
filename
,
'.rb'
if
@
device
[:
compatible_packages
].
any
?
do
|
elem
|
elem
[:
name
]
==
pkgName
end
if
(
File
.
exist
?
CREW_META_PATH
+
pkgName
+
'.filelist'
)
&&
compat
puts
pkgName
.
lightgreen
else
puts
pkgName
if
compat
if
compat
if
(
File
.
exist
?
CREW_META_PATH
+
pkgName
+
'.filelist'
)
puts
pkgName
.
lightgreen
else
puts
pkgName
end
end
else
puts
pkgName
.
lightred
puts
pkgName
.
lightred
unless
compat
end
end
end
...
...
lib/const.rb
View file @
9cd537c6
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.10.
7
'
CREW_VERSION
=
'1.10.
8
'
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