[entropy.spm] on quickpkg 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:36:54 +02:00
parent 9154235172
commit 2f3db91df5
+2
View File
@@ -20,6 +20,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
'''
import os
import stat
import sys
import shutil
import tempfile
@@ -516,6 +517,7 @@ class PortagePlugin:
tarinfo = tar.gettarinfo(lpath, arcname)
if stat.S_ISREG(exist.st_mode):
tarinfo.mode = stat.S_IMODE(exist.st_mode)
tarinfo.type = tarfile.REGTYPE
f = open(path)
try: