From f44c4e1c5ddb6f31644335df1c0ae6f91d189a20 Mon Sep 17 00:00:00 2001 From: Christoph Goehre Date: Fri, 24 Jul 2009 13:36:42 +0200 Subject: allow to disable chmod on incoming If you share a repository with a group, it may be possible you are not allowed to change permission on incoming. Setting incoming_permissions to zero will disable this chmod. Closes: #535558 --- mini-dinstall | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mini-dinstall') diff --git a/mini-dinstall b/mini-dinstall index 6261934..9359fa5 100755 --- a/mini-dinstall +++ b/mini-dinstall @@ -173,6 +173,8 @@ def do_rename(source, target): do_and_log('Renaming "%s" to "%s"' % (source, target), os.rename, source, target) def do_chmod(name, mode): + if mode == 0: + return do_and_log('Changing mode of "%s" to %o' % (name, mode), os.chmod, name, mode) logger.setLevel(logging.DEBUG) -- cgit v1.2.3