Skip to content

Commit 3262e31

Browse files
committed
Merge branch 'master' of ssh://github.com/gopythongo/aptly-api-client
2 parents 13f0c6c + 109bfa3 commit 3262e31

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

aptly_api/parts/publish.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ def update(self, *, prefix: str, distribution: str,
126126
snapshots: Optional[Sequence[Dict[str, str]]] = None, force_overwrite: bool = False,
127127
sign_skip: bool = False, sign_batch: bool = True, sign_gpgkey: Optional[str] = None,
128128
sign_keyring: Optional[str] = None, sign_secret_keyring: Optional[str] = None,
129-
sign_passphrase: Optional[str] = None, sign_passphrase_file: Optional[str] = None) -> PublishEndpoint:
129+
sign_passphrase: Optional[str] = None, sign_passphrase_file: Optional[str] = None,
130+
skip_cleanup: Optional[bool] = False) -> PublishEndpoint:
130131
"""
131132
Example:
132133
@@ -149,6 +150,8 @@ def update(self, *, prefix: str, distribution: str,
149150

150151
if force_overwrite:
151152
body["ForceOverwrite"] = True
153+
if skip_cleanup:
154+
body["SkipCleanup"] = True
152155

153156
sign_dict = {} # type: Dict[str, Union[bool,str]]
154157
if sign_skip:

aptly_api/tests/publish.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ def test_update_snapshot_default_key(self, *, rmock: requests_mock.Mocker) -> No
279279
sign_batch=True,
280280
sign_passphrase="123456",
281281
sign_keyring="/etc/gpg-managed-keyring/pubring.pub",
282-
sign_secret_keyring="/etc/gpg-managed-keyring/secring.gpg"
282+
sign_secret_keyring="/etc/gpg-managed-keyring/secring.gpg",
283+
skip_cleanup=True
283284
),
284285
PublishEndpoint(
285286
storage='s3:aptly-repo',

0 commit comments

Comments
 (0)