From: Zac Medico Date: Thu, 2 Apr 2009 17:58:39 +0000 (-0000) Subject: Inside tar_contents(), don't emulate tar --numeric-id option. The uid/gid X-Git-Tag: v2.2_rc29~31 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c922791ab3d4413f78c55184aef55e2c9ef1401c;p=portage.git 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. svn path=/main/trunk/; revision=13281 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 061622b16..833ba3102 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -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