From a996d1d31e966a4689641155a8e8e4cbdc7570ea Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Apr 2009 06:56:43 +0000 Subject: [PATCH] Inside tar_contents(), don't emulate tar --numeric-id option. The uid/gid 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 0256361c1..8e63d9b64 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -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 -- 2.26.2