Skip to content

Commit 3711ec1

Browse files
authored
Merge branch 'master' into wait-for-network
2 parents 5b82ca0 + f9ae8a2 commit 3711ec1

File tree

10 files changed

+34
-18
lines changed

10 files changed

+34
-18
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ runs:
4343

4444
- name: Caching for Pre-Commit
4545
if: ${{ inputs.pre-commit }}
46-
uses: actions/cache@v3
46+
uses: actions/cache@v4
4747
with:
4848
path: ~/.cache/pre-commit
4949
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}

.github/workflows/build-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: Check out selected branch
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
with:
3131
ref: ${{ github.event.inputs.branch }}
3232
- name: Install uv

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
lint:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Setup python, vorta and dev deps
2525
uses: ./.github/actions/setup
2626
with:
@@ -37,7 +37,7 @@ jobs:
3737
matrix-unit: ${{ steps.set-matrix-unit.outputs.matrix }}
3838
matrix-integration: ${{ steps.set-matrix-integration.outputs.matrix }}
3939
steps:
40-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
4141

4242
- name: Give execute permission to script
4343
run: chmod +x ./.github/scripts/generate-matrix.sh
@@ -63,7 +63,7 @@ jobs:
6363
matrix: ${{fromJson(needs.prepare-matrix.outputs.matrix-unit)}}
6464

6565
steps:
66-
- uses: actions/checkout@v3
66+
- uses: actions/checkout@v4
6767

6868
- name: Install system dependencies
6969
uses: ./.github/actions/install-dependencies
@@ -99,7 +99,7 @@ jobs:
9999
run: echo $PKG_CONFIG_PATH && make test-unit
100100

101101
- name: Upload coverage to Codecov
102-
uses: codecov/codecov-action@v3
102+
uses: codecov/codecov-action@v4
103103
env:
104104
OS: ${{ runner.os }}
105105
python: ${{ matrix.python-version }}
@@ -116,7 +116,7 @@ jobs:
116116
matrix: ${{fromJson(needs.prepare-matrix.outputs.matrix-integration)}}
117117

118118
steps:
119-
- uses: actions/checkout@v3
119+
- uses: actions/checkout@v4
120120

121121
- name: Install system dependencies
122122
uses: ./.github/actions/install-dependencies

src/vorta/assets/UI/about_tab.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
</layout>
119119
</item>
120120
<item>
121-
<widget class="QFrame" name="seperator">
121+
<widget class="QFrame" name="separator">
122122
<property name="frameShape">
123123
<enum>QFrame::HLine</enum>
124124
</property>
@@ -223,7 +223,7 @@
223223
</layout>
224224
</item>
225225
<item>
226-
<widget class="QFrame" name="seperator">
226+
<widget class="QFrame" name="separator">
227227
<property name="frameShape">
228228
<enum>QFrame::HLine</enum>
229229
</property>

src/vorta/borg/info_archive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def process_result(self, result):
4646
archive = ArchiveModel.get_or_none(name=remote_archive['name'], repo=repo_id)
4747
archive.snapshot_id = remote_archive['id']
4848

49-
archive.name = remote_archive['name'] # incase name changed
49+
archive.name = remote_archive['name'] # in case name changed
5050
# archive.time = parser.parse(remote_archive['time'])
5151
archive.duration = remote_archive['duration']
5252
archive.size = remote_archive['stats']['deduplicated_size']

src/vorta/keyring/darwin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def delete_password(self, service, repo_url):
9494
try:
9595
result, password_length, password_buffer, keychain_item = SecKeychainFindGenericPassword(
9696
self.login_keychain,
97-
len(service),
97+
len(service.encode()),
9898
service.encode(),
99-
len(repo_url),
99+
len(repo_url.encode()),
100100
repo_url.encode(),
101101
None,
102102
None,
@@ -124,9 +124,9 @@ def get_password(self, service, repo_url):
124124
keychain_item,
125125
) = SecKeychainFindGenericPassword(
126126
self.login_keychain,
127-
len(service),
127+
len(service.encode()),
128128
service.encode(),
129-
len(repo_url),
129+
len(repo_url.encode()),
130130
repo_url.encode(),
131131
None,
132132
None,

src/vorta/profile_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def to_db(self, overwrite_profile=False, overwrite_settings=True):
100100
while BackupProfileModel.get_or_none(BackupProfileModel.id == self.id) is not None:
101101
self._profile_dict['id'] += 1
102102

103-
# Add suffix incase names are the same
103+
# Add suffix in case names are the same
104104
if BackupProfileModel.get_or_none(BackupProfileModel.name == self.name) is not None:
105105
suffix = 1
106106
while BackupProfileModel.get_or_none(BackupProfileModel.name == f"{self.name}-{suffix}") is not None:

src/vorta/views/archive_tab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ def rename_result(self, result):
10451045
def toggle_compact_button_visibility(self):
10461046
"""
10471047
Enable or disable the compact button depending on the Borg version.
1048-
This function runs once on startup, and everytime the profile is changed.
1048+
This function runs once on startup, and every time the profile is changed.
10491049
"""
10501050
if borg_compat.check("COMPACT_SUBCOMMAND"):
10511051
self.compactButton.setEnabled(True)

src/vorta/views/partials/treemodel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def _addChild(
412412
This is called by `addItem` in a reduce statement. It should
413413
add a new child with the given attributes to the given item.
414414
This implementation provides a reasonable default, most subclasses
415-
wont need to override this method. The implementation should make use
415+
won't need to override this method. The implementation should make use
416416
of `_make_filesystemitem`, `_merge_data`, `_add_children`.
417417
418418
Parameters
@@ -562,7 +562,7 @@ def setMode(self, value: 'DisplayMode'):
562562
563563
In TREE mode (default) the tree will be displayed as is.
564564
In SIMPLIFIED_TREE items will simplify the tree by combining
565-
items with their single child if they posess only one.
565+
items with their single child if they possess only one.
566566
In FLAT mode items will be displayed as a simple list. The items
567567
shown can be filtered by `_flat_filter`.
568568

tests/unit/test_keyring_darwin.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import sys
2+
import uuid
3+
4+
import pytest
5+
6+
7+
@pytest.mark.skipif(sys.platform != "darwin", reason="macOS only")
8+
def test_keyring_non_ascii_repo():
9+
from vorta.keyring.darwin import VortaDarwinKeyring
10+
11+
UNICODE_PW = 'password'
12+
REPO = 'vorta-test-repo-한글'
13+
14+
keyring = VortaDarwinKeyring()
15+
keyring.set_password('vorta-repo', REPO, UNICODE_PW)
16+
assert keyring.get_password("vorta-repo", REPO) == UNICODE_PW

0 commit comments

Comments
 (0)