Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r13456 - main/branches/2.1.6/pym/portage/dbapi
Date: Thu, 30 Apr 2009 06:56:47
Message-Id: E1LzQCJ-0005cM-Vl@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-04-30 06:56:43 +0000 (Thu, 30 Apr 2009)
3 New Revision: 13456
4
5 Modified:
6 main/branches/2.1.6/pym/portage/dbapi/vartree.py
7 Log:
8 Inside tar_contents(), don't emulate tar --numeric-id option. The uid/gid
9 might be different on the system where the package will be installed, so we
10 need to store the actual user/group name in the tar file. (trunk r13281)
11
12 Modified: main/branches/2.1.6/pym/portage/dbapi/vartree.py
13 ===================================================================
14 --- main/branches/2.1.6/pym/portage/dbapi/vartree.py 2009-04-30 06:56:04 UTC (rev 13455)
15 +++ main/branches/2.1.6/pym/portage/dbapi/vartree.py 2009-04-30 06:56:43 UTC (rev 13456)
16 @@ -2998,9 +2998,6 @@
17 # can properly extract it's children.
18 live_path = os.path.realpath(live_path)
19 tarinfo = tar.gettarinfo(live_path, arcname)
20 - # store numbers instead of real names like tar's --numeric-owner
21 - tarinfo.uname = id_strings.setdefault(tarinfo.uid, str(tarinfo.uid))
22 - tarinfo.gname = id_strings.setdefault(tarinfo.gid, str(tarinfo.gid))
23
24 if stat.S_ISREG(lst.st_mode):
25 # break hardlinks due to bug #185305