diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-04-02 17:58:39 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-04-02 17:58:39 +0000 |
commit | c922791ab3d4413f78c55184aef55e2c9ef1401c (patch) | |
tree | 82fea98325497115f097b205ee8370b8fb9dc909 | |
parent | 63c9a0c65e0c4cc1ef9e407b5cf2d363d3f766b2 (diff) | |
download | portage-c922791ab3d4413f78c55184aef55e2c9ef1401c.tar.gz portage-c922791ab3d4413f78c55184aef55e2c9ef1401c.tar.bz2 portage-c922791ab3d4413f78c55184aef55e2c9ef1401c.zip |
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
-rw-r--r-- | pym/portage/dbapi/vartree.py | 3 |
1 files changed, 0 insertions, 3 deletions
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 |