Skip to content
Snippets Groups Projects
Commit 2fe28162 authored by Simon McVittie's avatar Simon McVittie
Browse files

populate-depot: Only put permissions in mode=, not all of st_mode


This matches the output of bsdtar (libarchive), for example:

    bsdtar -cf- --format=mtree -C ~/tmp .

and NetBSD mtree(8) (the mtree-netbsd package in Debian), for example:

    mtree -c -p ~/tmp | mtree -C

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 873120b2
No related branches found
No related tags found
1 merge request!631Add a tool to verify runtimes against a mtree manifest
......@@ -1582,7 +1582,7 @@ class Main:
if stat.S_ISREG(stat_info.st_mode):
fields.append('type=file')
fields.append('mode=%o' % stat_info.st_mode)
fields.append('mode=%o' % (stat_info.st_mode & 0o7777))
# With sub-second precision, note that some versions
# of mtree use the part after the dot as integer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment