Skip to content

Commit c0498cd

Browse files
Samson Danzigerpdxjohnny
authored andcommitted
Fix rpmfile fails to load localized RPM headers
#6 Return an array, and allow the user to deal with the issue. There should not be any compatability options as we are the first to use the library.
1 parent b274122 commit c0498cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rpmfile/headers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@
313313

314314

315315
def extract_string(offset, count, store):
316+
if count > 1:
317+
return extract_array(offset, count, store)
316318
assert count == 1
317319
idx = store[offset:].index(b"\x00")
318320
return store[offset : offset + idx]

0 commit comments

Comments
 (0)