On 17/04/17 20:41, Allan McRae wrote:
> +     # ensure all elements of the package have the same mtime
> +     find . -exec touch -d @$SOURCE_DATE_EPOCH {} \;
> +
>       msg2 "$(gettext "Generating .MTREE file...")"
> -     list_package_files | LANG=C bsdtar -cnzf .MTREE --format=mtree \
> +     list_package_files | LANG=C bsdtar -cnf - --format=mtree \
>               
> --options='!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link' \
> -             --null --files-from - --exclude .MTREE
> +             --null --files-from - --exclude .MTREE | gzip -c -f -n > .MTREE
> +     touch -d @$SOURCE_DATE_EPOCH .MTREE
>  
>       msg2 "$(gettext "Compressing package...")"
>       # TODO: Maybe this can be set globally for robustness
> 

These touch commands have had a -h added.

A

Reply via email to