mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +00:00
fix: remove trailit slash when loading packages files from a database
This commit is contained in:
parent
6f30c687c2
commit
88ee300b9e
@ -197,7 +197,9 @@ class Pacman(LazyLogging):
|
||||
content = tar.extractfile(descriptor)
|
||||
if content is None:
|
||||
continue
|
||||
files = {filename.decode("utf8").rstrip() for filename in content.readlines()}
|
||||
# this is just array of files, however, the directories are with trailing slash,
|
||||
# which previously has been removed by the conversion to ``pathlib.Path``
|
||||
files = {filename.decode("utf8").rstrip().removesuffix("/") for filename in content.readlines()}
|
||||
|
||||
yield package, files
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user