Validator for file mode is not correct
It seems the validator for file modes is not correct:
repod-file package inspect /mnt/mirror/extra/os/x86_64/postfix-3.7.2-1-x86_64.pkg.tar.zst
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/repod/files/mtree.py", line 360, in from_file
MTreeEntryV1(
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for MTreeEntryV1
mode
string does not match regex "^[0124567]{3,4}$" (type=value_error.str.regex; pattern=^[0124567]{3,4}$)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/repod-file", line 8, in <module>
sys.exit(repod_file())
File "/usr/lib/python3.10/site-packages/repod/cli/cli.py", line 189, in repod_file
repod_file_package(args=args)
File "/usr/lib/python3.10/site-packages/repod/cli/cli.py", line 33, in repod_file_package
model = asyncio.run(
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/usr/lib/python3.10/site-packages/repod/files/package.py", line 106, in from_file
mtree=MTree.from_file(
File "/usr/lib/python3.10/site-packages/repod/files/mtree.py", line 374, in from_file
raise RepoManagementValidationError(
repod.errors.RepoManagementValidationError: An error occured when validating mtree data!
Basic settings: {'type_': 'file', 'uid': 0, 'gid': 0, 'mode': '700'}
File settings: {'name': '/var/spool/postfix/maildrop', 'time': 1651136843.0, 'mode': '730', 'type_': 'dir'}
1 validation error for MTreeEntryV1
mode
string does not match regex "^[0124567]{3,4}$" (type=value_error.str.regex; pattern=^[0124567]{3,4}$)