[pacman-dev] [PATCH] pmpkg: set default mode for files in sync packages
TarInfo objects default to mode 0644 while mkfile in util.py uses 0755,
causing pacman warnings about differing permissions on tests involving
package updates. Set the mode on TarInfo objects to 0755 unless the
test specifies a different mode.
Bug referenced in FS#30723.
Signed-off-by: Andrew Gregory
On 03/04/13 10:30, Andrew Gregory wrote:
TarInfo objects default to mode 0644 while mkfile in util.py uses 0755, causing pacman warnings about differing permissions on tests involving package updates. Set the mode on TarInfo objects to 0755 unless the test specifies a different mode.
Bug referenced in FS#30723.
Hrm... I'd prefer to stick to "defaults" of 0755 for directories and 0644 for files. Not sure how difficult that is though. Also, if we must go this root, mode002.py needs adjusted to do something other than the default (or another test added). Allan
TarInfo objects default to mode 0644 while mkfile in util.py uses 0755
for directories, causing pacman warnings about differing permissions on
tests involving package updates. Set the mode on TarInfo directory
objects to 0755 unless the test specifies a different mode.
Bug referenced in FS#30723.
Signed-off-by: Andrew Gregory
open() is the standard way to open a file in python.
Signed-off-by: Andrew Gregory
participants (2)
-
Allan McRae
-
Andrew Gregory