Skip to content

Commit 9c15942

Browse files
committed
2025-02-05T07:17:22Z
1 parent 6507931 commit 9c15942

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

omdev/oci/tars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def tell(self) -> int:
6565
return self._f.tell()
6666

6767
_cw: _FileWrapper
68-
_cf: gzip.GzipFile
68+
_cf: ta.BinaryIO
6969

7070
_tw: _FileWrapper
7171
_tf: tarfile.TarFile
@@ -129,7 +129,7 @@ def add_file(self, ti: tarfile.TarInfo, f: ta.Optional[ta.BinaryIO] = None) -> N
129129
self._tf.addfile(ti, f)
130130

131131

132-
def write_oci_data_tar_gz_file(
132+
def write_oci_data_tar_file(
133133
f: ta.BinaryIO,
134134
data: ta.Mapping[str, OciDataRef],
135135
) -> WrittenOciDataTarFileInfo:

omdev/pyproject/resources/python.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
if [ -z "${VENV}" ] ; then
5-
if [ $(uname) = "Linux" ] && (cat /proc/mounts | grep -E '^overlay / .*/(docker|desktop-containerd)/' > /dev/null) ; then
5+
if [ $(uname) = "Linux" ] && grep -E '^overlay / .*/(docker|desktop-containerd)/' /proc/mounts > /dev/null ; then
66
VENV=docker
77
else
88
VENV=default

python

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
if [ -z "${VENV}" ] ; then
5-
if [ $(uname) = "Linux" ] && (cat /proc/mounts | grep -E '^overlay / .*/(docker|desktop-containerd)/' > /dev/null) ; then
5+
if [ $(uname) = "Linux" ] && grep -E '^overlay / .*/(docker|desktop-containerd)/' /proc/mounts > /dev/null ; then
66
VENV=docker
77
else
88
VENV=default

0 commit comments

Comments
 (0)