Revert "Fix cmds installing python docs (permissions)"

This reverts commit dc8572f241.

The permission issue seems fixed upstream: after I untar the tarball
with --no-same-owner --no-same-permissions as root, all files are 644
and all directories are 755 (proven via find -type f -not -perm 644 and
find -type d -not -perm 755).
This commit is contained in:
Xi Ruoyao 2025-02-08 08:42:47 +08:00
parent 40ca48d44f
commit 94dc9c26d2
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -162,21 +162,21 @@ EOF
<screen><userinput remap="install">install -v -dm755 /usr/share/doc/python-&python-version;/html
tar --no-same-owner \
-xvf ../python-&python-version;-docs-html.tar.bz2
cp -R --no-preserve=mode python-&python-version;-docs-html/* \
/usr/share/doc/python-&python-version;/html</userinput></screen>
tar --strip-components=1 \
--no-same-owner \
--no-same-permissions \
-C /usr/share/doc/python-&python-version;/html \
-xvf ../python-&python-version;-docs-html.tar.bz2</userinput></screen>
<variablelist>
<title>The meaning of the documentation install commands:</title>
<varlistentry>
<term><option>--no-same-owner</option> (tar) and <option>--no-preserve=mode</option> (cp)</term>
<term><option>--no-same-owner</option> and <option>--no-same-permissions</option></term>
<listitem>
<para>Ensure the installed files have the correct ownership and
permissions. Without these options, <application>tar</application>
will install the package files with the upstream creator's values
and files would have restrictive permissions.
will install the package files with the upstream creator's values.
</para>
</listitem>
</varlistentry>