From ce9ba8320e073b589c92c04445f7dd9c926875cb Mon Sep 17 00:00:00 2001 From: James Adams Date: Tue, 16 Jul 2024 10:49:17 +0100 Subject: [PATCH] Use correct prefix for octal value --- mrepo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrepo.py b/mrepo.py index 6c8a4f5..306ac06 100755 --- a/mrepo.py +++ b/mrepo.py @@ -556,7 +556,7 @@ def lock(self, action): lockfile = os.path.join(CONFIG.lockdir, self.dist.nick, action + '-' + self.name + '.lock') mkdir(os.path.dirname(lockfile)) try: - file_object = os.open(lockfile, os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0600) + file_object = os.open(lockfile, os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0o0600) info(6, '%s: Setting lock %s' % (self.dist.nick, lockfile)) os.write(file_object, '%d' % os.getpid()) os.close(file_object)