-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When stage packages are installed dependencies should be cut at a threshold given by the base defined in the project. Pass the effective build base to the parts processor so that base package cutoff is performed at the correct threshold. Signed-off-by: Claudio Matsuoka <[email protected]>
- Loading branch information
Showing
5 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tests/spread/core22/snap-creation/package-cutoff/snap/snapcraft.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: package-cutoff | ||
base: core22 | ||
version: '1.0' | ||
summary: 'test' | ||
description: test | ||
grade: devel | ||
confinement: devmode | ||
|
||
parts: | ||
part-1: | ||
source: . | ||
plugin: nil | ||
stage-packages: | ||
- libpng16-16 | ||
part-2: | ||
source: . | ||
plugin: python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
summary: Test base package cutoff | ||
|
||
environment: | ||
SNAP/package_cutoff: package-cutoff | ||
|
||
prepare: | | ||
#shellcheck source=tests/spread/tools/snapcraft-yaml.sh | ||
. "$TOOLS_DIR/snapcraft-yaml.sh" | ||
# set_base "$SNAP/snap/snapcraft.yaml" | ||
restore: | | ||
cd "$SNAP" | ||
rm -f ./*.snap | ||
rm -Rf work | ||
#shellcheck source=tests/spread/tools/snapcraft-yaml.sh | ||
. "$TOOLS_DIR/snapcraft-yaml.sh" | ||
restore_yaml "snap/snapcraft.yaml" | ||
execute: | | ||
cd "$SNAP" | ||
snapcraft --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters