Skip to content

Commit e75b19b

Browse files
committed
address code review feedback
1 parent 64f2782 commit e75b19b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ jobs:
160160
tags: backblaze/b2:${{ steps.build.outputs.version }}
161161

162162
debian-release:
163+
if: ${{ vars.B2_DEBIAN_BUCKET_UPLOAD_MISSING }}
163164
name: Build Debian Package
164165
uses: ./.github/workflows/cd_debian.yml
165166
secrets: inherit

b2/arg_parser.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,14 @@
2727
def rst2ansi(input_string, output_encoding='utf-8'):
2828
"""Dummy replacement of rst2ansi which is not available in Debian."""
2929
if isinstance(input_string, bytes):
30-
return input_string.decode(output_encoding)
31-
return input_string
30+
input_string = input_string.decode(output_encoding)
31+
32+
# remove double backticks
33+
stripped = input_string.replace('``', '')
34+
# remove code-block directive
35+
stripped = stripped.replace('.. code-block::', '')
36+
37+
return stripped
3238

3339

3440
_arrow_version = tuple(int(p) for p in arrow.__version__.split("."))

0 commit comments

Comments
 (0)