[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.
This commit is contained in:
Fabio Erculiani
2009-06-26 09:38:03 +02:00
parent 2f3db91df5
commit dec2dbe464
@@ -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: