Skip to content

Commit 0030222

Browse files
Sergey Bizingoldmann
Sergey Bizin
authored andcommitted
Podman compatibility
1 parent 3ebff68 commit 0030222

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker_squash/v2_image.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class V2Image(Image):
1616
def _before_squashing(self):
1717
super(V2Image, self)._before_squashing()
1818

19+
# New OCI Archive format type
20+
self.oci_format = True
21+
1922
# Read old image manifest file
2023
self.old_image_manifest = self._get_manifest()
2124
self.log.debug(
@@ -375,8 +378,6 @@ def _generate_image_metadata(self):
375378

376379
def _get_manifest(self):
377380
if os.path.exists(os.path.join(self.old_image_dir, "index.json")):
378-
# New OCI Archive format type
379-
self.oci_format = True
380381
# Not using index.json to extract manifest details as while the config
381382
# sha could be extracted via some indirection i.e.
382383
#

0 commit comments

Comments
 (0)