Skip to content

Commit 1e81450

Browse files
committed
Silence "part with unknown kind" warnings on 1.55+
1 parent 780c7c1 commit 1e81450

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Archive/SCS/HashFS2.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ method mount () {
112112
my $size = (my $is_data_part = $kind & 0x80) ? 16
113113
: $kind == 1 ? 8
114114
: $kind == 2 ? 4
115+
: $kind == 5 ? 32 # seen with .pma files on 1.55+
116+
: $kind == 6 ? 8 # seen with .pmg files on 1.55+
115117
: 0 or warnings::warnif io =>
116118
sprintf "Encountered index 2 part with unknown kind %02x", $kind;
117119

0 commit comments

Comments
 (0)