From dec2dbe4647d502fb62faba03ab03c6732301090 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Fri, 26 Jun 2009 09:38:03 +0200 Subject: [PATCH] [entropy.client.interfaces.methods] on quickpkg_handler copy file modes 1:1 It happened that setgid and setuid bits were not copied by default. This commit fixes it. --- libraries/entropy/client/interfaces/methods.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/entropy/client/interfaces/methods.py b/libraries/entropy/client/interfaces/methods.py index 7f0802933..77655379c 100644 --- a/libraries/entropy/client/interfaces/methods.py +++ b/libraries/entropy/client/interfaces/methods.py @@ -21,6 +21,7 @@ ''' from __future__ import with_statement import os +import stat import sys import shutil import time @@ -1384,6 +1385,7 @@ class MiscMixin: tarinfo = tar.gettarinfo(path, arcname) if stat.S_ISREG(exist.st_mode): + tarinfo.mode = stat.S_IMODE(exist.st_mode) tarinfo.type = tarfile.REGTYPE f = open(path) try: