Inside tar_contents(), don't emulate tar --numeric-id option. The uid/gid
authorZac Medico <zmedico@gentoo.org>
Thu, 2 Apr 2009 17:58:39 +0000 (17:58 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 2 Apr 2009 17:58:39 +0000 (17:58 -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.

svn path=/main/trunk/; revision=13281

pym/portage/dbapi/vartree.py

index 061622b1627b66ed30d4b212b7082d68daba00d8..833ba310287ed6aa856963752aff3092efc987c7 100644 (file)
@@ -4068,9 +4068,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