From 56dd768176a9ed3474dba9bb0c641507558668ea Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Tue, 30 Aug 2011 10:36:02 +0200 Subject: [PATCH] add a comment about python upstream bug --- installsystems/tarball.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/installsystems/tarball.py b/installsystems/tarball.py index cb2af46..d6f7fd1 100644 --- a/installsystems/tarball.py +++ b/installsystems/tarball.py @@ -58,12 +58,14 @@ class Tarball(tarfile.TarFile): def chown(self, tarinfo, targetpath): ''' - Overide real chown method from tarfile which make crazy check about + Override real chown method from tarfile which make crazy check about uid/gid before chowning. This leads to bug when a uid/gid doesn't exitsts on the running system This overide as a sexy side effect which allow badly create tarball (whithout --numeric-owner) to be extracted correctly + + This was reported upstream: http://bugs.python.org/issue12841 ''' if hasattr(os, "geteuid") and os.geteuid() == 0: # We have to be root to do so. -- GitLab