1 |
commit: f345724471322f989701e25bb0462a8b5f458dd2 |
2 |
Author: Arfrever <arfrever <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 30 17:23:04 2011 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 30 17:23:16 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=commit;h=f3457244 |
7 |
|
8 |
Update syntax of octal numbers for compatibility with Python 3. |
9 |
|
10 |
Reported-By: Arfrever <arfrever <AT> gentoo.org> |
11 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
12 |
|
13 |
--- |
14 |
WebappConfig/content.py | 2 +- |
15 |
WebappConfig/db.py | 4 ++-- |
16 |
WebappConfig/dotconfig.py | 2 +- |
17 |
WebappConfig/worker.py | 2 +- |
18 |
4 files changed, 5 insertions(+), 5 deletions(-) |
19 |
|
20 |
diff --git a/WebappConfig/content.py b/WebappConfig/content.py |
21 |
index c535e52..d6cf3f6 100644 |
22 |
--- a/WebappConfig/content.py |
23 |
+++ b/WebappConfig/content.py |
24 |
@@ -298,7 +298,7 @@ class Contents: |
25 |
if not self.__p: |
26 |
try: |
27 |
fd = os.open(self.appdb(), os.O_WRONLY | os.O_CREAT, |
28 |
- self.__perm(0600)) |
29 |
+ self.__perm(0o600)) |
30 |
|
31 |
os.write(fd, '\n'.join(values)) |
32 |
|
33 |
|
34 |
diff --git a/WebappConfig/db.py b/WebappConfig/db.py |
35 |
index 856761e..aa78c24 100644 |
36 |
--- a/WebappConfig/db.py |
37 |
+++ b/WebappConfig/db.py |
38 |
@@ -370,14 +370,14 @@ class WebappDB(AppHierarchy): |
39 |
OUT.die('No package specified!') |
40 |
|
41 |
if not self.__p and not os.path.isdir(os.path.dirname(dbpath)): |
42 |
- os.makedirs(os.path.dirname(dbpath), self.__dir_perm(0755)) |
43 |
+ os.makedirs(os.path.dirname(dbpath), self.__dir_perm(0o755)) |
44 |
|
45 |
fd = None |
46 |
|
47 |
if not self.__p: |
48 |
fd = os.open(dbpath, |
49 |
os.O_WRONLY | os.O_APPEND | os.O_CREAT, |
50 |
- self.__file_perm(0600)) |
51 |
+ self.__file_perm(0o600)) |
52 |
|
53 |
entry = str(int(time.time())) + ' ' + str(user) + ' ' + str(group)\ |
54 |
+ ' ' + installdir + '\n' |
55 |
|
56 |
diff --git a/WebappConfig/dotconfig.py b/WebappConfig/dotconfig.py |
57 |
index be01126..c9a5ba1 100644 |
58 |
--- a/WebappConfig/dotconfig.py |
59 |
+++ b/WebappConfig/dotconfig.py |
60 |
@@ -255,7 +255,7 @@ class DotConfig: |
61 |
|
62 |
fd = os.open(self.__dot_config(), |
63 |
os.O_WRONLY | os.O_CREAT, |
64 |
- self.__perm(0600)) |
65 |
+ self.__perm(0o600)) |
66 |
|
67 |
os.write(fd, '\n'.join(info)) |
68 |
os.close(fd) |
69 |
|
70 |
diff --git a/WebappConfig/worker.py b/WebappConfig/worker.py |
71 |
index d1ece72..d57a55c 100644 |
72 |
--- a/WebappConfig/worker.py |
73 |
+++ b/WebappConfig/worker.py |
74 |
@@ -375,7 +375,7 @@ class WebappAdd: |
75 |
OUT.debug('Creating directory', 8) |
76 |
|
77 |
if not self.__p: |
78 |
- os.makedirs(dst_dir, perm(0755)) |
79 |
+ os.makedirs(dst_dir, perm(0o755)) |
80 |
|
81 |
os.chown(dst_dir, |
82 |
user, |