From e19091b2bfe53cc1c37f2fc4999c359719637d7c Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sun, 14 Apr 2013 14:32:19 -0400 Subject: pmpkg: default mode 0755 for dirs in sync packages 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 Signed-off-by: Allan McRae --- test/pacman/pmpkg.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/pacman/pmpkg.py b/test/pacman/pmpkg.py index 988c73f3..9b3147a3 100644 --- a/test/pacman/pmpkg.py +++ b/test/pacman/pmpkg.py @@ -160,6 +160,8 @@ class pmpkg(object): info = tarfile.TarInfo(fileinfo["filename"]) if fileinfo["hasperms"]: info.mode = fileinfo["perms"] + elif fileinfo["isdir"]: + info.mode = 0755 if fileinfo["isdir"]: info.type = tarfile.DIRTYPE tar.addfile(info) -- cgit v1.2.3-70-g09d2