summaryrefslogtreecommitdiffstats
path: root/pym/portage/locks.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/locks.py')
-rw-r--r--pym/portage/locks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/locks.py b/pym/portage/locks.py
index f2147c5e1..896f948f1 100644
--- a/pym/portage/locks.py
+++ b/pym/portage/locks.py
@@ -64,7 +64,7 @@ def lockfile(mypath, wantnewlockfile=0, unlinkfile=0,
old_mask = os.umask(000)
try:
try:
- myfd = os.open(lockfilename, os.O_CREAT|os.O_RDWR, 0660)
+ myfd = os.open(lockfilename, os.O_CREAT|os.O_RDWR, 0o660)
except OSError as e:
func_call = "open('%s')" % lockfilename
if e.errno == OperationNotPermitted.errno:
@@ -201,7 +201,7 @@ def unlockfile(mytuple):
try:
if myfd is None:
- myfd = os.open(lockfilename, os.O_WRONLY,0660)
+ myfd = os.open(lockfilename, os.O_WRONLY,0o660)
unlinkfile = 1
locking_method(myfd,fcntl.LOCK_UN)
except OSError:
@@ -268,7 +268,7 @@ def hardlink_lockfile(lockfilename, max_wait=14400):
while(time.time() < (start_time + max_wait)):
# We only need it to exist.
- myfd = os.open(myhardlock, os.O_CREAT|os.O_RDWR,0660)
+ myfd = os.open(myhardlock, os.O_CREAT|os.O_RDWR,0o660)
os.close(myfd)
if not os.path.exists(myhardlock):