]> err.no Git - dak/commitdiff
and do it for the tempdir function too
authorJoerg Jaspert <joerg@debian.org>
Sun, 16 Sep 2012 16:40:30 +0000 (18:40 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sun, 16 Sep 2012 16:40:30 +0000 (18:40 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/utils.py

index 03cd589463c5e81908529c8d8ed17927d6082abc..63d8f471e6a773f9d4fe0ba70a6fe218707ad058 100755 (executable)
@@ -1503,7 +1503,8 @@ def temp_dirname(parent=None, prefix="dak", suffix="", mode=None, group=None):
     if mode:
         os.chmod(tfname, mode)
     if group:
-        os.chown(tfname, -1, group)
+        gid = grp.getgrnam(group).gr_gid
+        os.chown(tfname, -1, gid)
     return tfname
 
 ################################################################################