Skip to content

Commit

Permalink
🎅 Bourne-Again (S)Hell
Browse files Browse the repository at this point in the history
  • Loading branch information
Guerteltier committed Dec 1, 2023
1 parent 0177159 commit 2868988
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,13 @@ jobs:
popd
- name: Download youki
run: |
MAJOR_MINOR_PATCH=$(echo $MAJOR.MINOR.PATCH|sed "s/\./_/g")
wget https://github.com/containers/youki/releases/download/v${MAJOR.MINOR.PATCH}/youki_${MAJOR_MINOR_PATCH}_linux.tar.gz
tar xOf youki_${MAJOR_MINOR_PATCH}_linux.tar.gz youki_${MAJOR_MINOR_PATCH}_linux/youki-${MAJOR.MINOR.PATCH}/youki > /opt/youki
rm -f youki_${MAJOR_MINOR_PATCH}_linux.tar.gz
VERSION_U_005F_LL=$(echo $VERSION_U_002E_FS|sed "s/\./_/g")
wget https://github.com/containers/youki/releases/download/v${VERSION_U_002E_FS}/youki_${VERSION_U_005F_LL}_linux.tar.gz
tar xOf youki_${VERSION_U_005F_LL}_linux.tar.gz youki_${VERSION_U_005F_LL}_linux/youki-${VERSION_U_002E_FS}/youki > /opt/youki
rm -f youki_${VERSION_U_005F_LL}_linux.tar.gz
chmod +x /opt/youki
env:
"MAJOR.MINOR.PATCH": 0.2.0
VERSION_U_002E_FS: 0.2.0
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,13 @@ jobs:
popd
- name: Download youki
run: |
MAJOR_MINOR_PATCH=$(echo $MAJOR.MINOR.PATCH|sed "s/\./_/g")
wget https://github.com/containers/youki/releases/download/v${MAJOR.MINOR.PATCH}/youki_${MAJOR_MINOR_PATCH}_linux.tar.gz
tar xOf youki_${MAJOR_MINOR_PATCH}_linux.tar.gz youki_${MAJOR_MINOR_PATCH}_linux/youki-${MAJOR.MINOR.PATCH}/youki > /opt/youki
rm -f youki_${MAJOR_MINOR_PATCH}_linux.tar.gz
VERSION_U_005F_LL=$(echo $VERSION_U_002E_FS|sed "s/\./_/g")
wget https://github.com/containers/youki/releases/download/v${VERSION_U_002E_FS}/youki_${VERSION_U_005F_LL}_linux.tar.gz
tar xOf youki_${VERSION_U_005F_LL}_linux.tar.gz youki_${VERSION_U_005F_LL}_linux/youki-${VERSION_U_002E_FS}/youki > /opt/youki
rm -f youki_${VERSION_U_005F_LL}_linux.tar.gz
chmod +x /opt/youki
env:
"MAJOR.MINOR.PATCH": 0.2.0
VERSION_U_002E_FS: 0.2.0
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand Down
13 changes: 8 additions & 5 deletions an_website/patches/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,14 @@ def redirect(
self.set_header("Location", url)
self.finish() # type: ignore[unused-awaitable]

redirect.__doc__ = (
cast(str, RequestHandler.redirect.__doc__)
.replace("301", "308")
.replace("302", "307")
)
if RequestHandler.redirect.__doc__:
# fmt: off
redirect.__doc__ = (
RequestHandler.redirect.__doc__
.replace("301", "308")
.replace("302", "307")
)
# fmt: on

RequestHandler.redirect = redirect # type: ignore[method-assign]

Expand Down

0 comments on commit 2868988

Please sign in to comment.