From 14128bb63cf7825520b08a1226132dd957809cc5 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 30 Jul 2007 23:37:27 +0000 Subject: As a workaround for bug #185305, make quickpkg break hardlinks during creation of the archive. svn path=/main/trunk/; revision=7526 --- pym/portage/dbapi/vartree.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pym') diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index fd543d5cd..92f48337e 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -2192,6 +2192,7 @@ class dblink(object): def tar_contents(contents, root, tar, protect=None, onProgress=None): from portage.util import normalize_path + import tarfile root = normalize_path(root).rstrip(os.path.sep) + os.path.sep id_strings = {} maxval = len(contents) @@ -2231,6 +2232,8 @@ def tar_contents(contents, root, tar, protect=None, onProgress=None): tarinfo.gname = id_strings.setdefault(tarinfo.gid, str(tarinfo.gid)) if stat.S_ISREG(lst.st_mode): + # break hardlinks due to bug #185305 + tarinfo.type = tarfile.REGTYPE if protect and protect(path): # Create an empty file as a place holder in order to avoid # potential collision-protect issues. -- cgit v1.2.3-1-g7c22