Inside tar_contents(), don't emulate tar --numeric-id option. The uid/gid
authorZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 06:56:43 +0000 (06:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 06:56:43 +0000 (06:56 -0000)
might be different on the system where the package will be installed, so we
need to store the actual user/group name in the tar file. (trunk r13281)

svn path=/main/branches/2.1.6/; revision=13456

pym/portage/dbapi/vartree.py

index 0256361c181865add28b3163ee354a95babf1eb3..8e63d9b64e7522ff1c3057caef8051a08c27f010 100644 (file)
@@ -2998,9 +2998,6 @@ def tar_contents(contents, root, tar, protect=None, onProgress=None):
                        # can properly extract it's children.
                        live_path = os.path.realpath(live_path)
                tarinfo = tar.gettarinfo(live_path, arcname)
-               # store numbers instead of real names like tar's --numeric-owner
-               tarinfo.uname = id_strings.setdefault(tarinfo.uid, str(tarinfo.uid))
-               tarinfo.gname = id_strings.setdefault(tarinfo.gid, str(tarinfo.gid))
 
                if stat.S_ISREG(lst.st_mode):
                        # break hardlinks due to bug #185305