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
c332b8ae
Commit
c332b8ae
authored
Mar 08, 2021
by
Ed Reel
Committed by
GitHub
Mar 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add preflight function (#5347)
* Add preflight function * Add self.preflight section to Manual.md
parent
5c939324
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
1 deletion
+15
-1
Manual.md
Manual.md
+3
-0
crew
crew
+1
-0
lib/const.rb
lib/const.rb
+1
-1
lib/package.rb
lib/package.rb
+5
-0
packages/template.rb.template
packages/template.rb.template
+5
-0
No files found.
Manual.md
View file @
c332b8ae
...
...
@@ -108,6 +108,9 @@ class Template < Package # Notice the capitals, EG: 'I3' - would be used for an
depends_on
'#'
=>
:build
# Only required when the package
is
built
from
source
# Notice the newline
def
self
.
preflight
# For preflight checks, not required
system
'#'
# Replace '#' with a disk space check, for example
end
def
self
.
prebuild
# For sed operations, not required
system
'#'
# Replace '#' with a sed operation
end
...
...
crew
View file @
c332b8ae
...
...
@@ -740,6 +740,7 @@ def expand_dependencies
end
def resolve_dependencies
@pkg.preflight
expand_dependencies
# leave only not installed packages in dependencies
...
...
lib/const.rb
View file @
c332b8ae
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.7.1
0
'
CREW_VERSION
=
'1.7.1
1
'
ARCH_ACTUAL
=
`uname -m`
.
strip
# This helps with virtualized builds on aarch64 machines
...
...
lib/package.rb
View file @
c332b8ae
...
...
@@ -69,6 +69,11 @@ class Package
@is_fake
end
# Function to perform pre-flight operations prior to dependency checks.
def
self
.
preflight
end
# Function to perform patch operations prior to build from source.
def
self
.
patch
...
...
packages/template.rb.template
View file @
c332b8ae
...
...
@@ -30,6 +30,11 @@ class Template < Package
# depends_on '*'
#
# Function to perform pre-flight operations prior to dependency checks.
def self.preflight
end
# Function to perform patch operations prior to build from source.
def self.patch
...
...
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