Skip to content

Commit

Permalink
refactor: put source-channel always before source-branch
Browse files Browse the repository at this point in the history
Signed-off-by: Dariusz Duda <[email protected]>
  • Loading branch information
dariuszd21 committed Jan 20, 2025
1 parent 5042a8b commit d9c4180
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion craft_parts/state_manager/pull_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def properties_of_interest(
"source-depth",
"source-tag",
"source-type",
"source-branch",
"source-channel",
"source-branch",
"source-subdir",
"source-submodules",
"override-pull",
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/features/overlay/test_parts.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def test_marshal_unmarshal(self):
"plugin": "nil",
"source": "http://example.com/hello-2.3.tar.gz",
"source-checksum": "md5/d9210476aac5f367b14e513bdefdee08",
"source-branch": "release",
"source-channel": None,
"source-branch": "release",
"source-commit": "2514f9533ec9b45d07883e10a561b248497a8e3c",
"source-depth": 3,
"source-subdir": "src",
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/state_manager/test_pull_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def test_property_changes(self, properties):
"source-depth",
"source-tag",
"source-type",
"source-branch",
"source-channel",
"source-branch",
"source-subdir",
"source-submodules",
"override-pull",
Expand Down Expand Up @@ -126,8 +126,8 @@ def test_extra_property_changes(self, properties):
"source-depth",
"source-tag",
"source-type",
"source-branch",
"source-channel",
"source-branch",
"source-subdir",
"source-submodules",
"override-pull",
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_parts.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def test_marshal_unmarshal(self, partitions):
"plugin": "nil",
"source": "http://example.com/hello-2.3.tar.gz",
"source-checksum": "md5/d9210476aac5f367b14e513bdefdee08",
"source-branch": "release",
"source-channel": None,
"source-branch": "release",
"source-commit": "2514f9533ec9b45d07883e10a561b248497a8e3c",
"source-depth": 3,
"source-subdir": "src",
Expand Down

0 comments on commit d9c4180

Please sign in to comment.