Gentoo Archives: gentoo-commits

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/layman:master commit in: layman/
Date: Sun, 29 Dec 2013 02:30:45
Message-Id: 1388284192.ae66303721ccd3d42d181f4042db94f731fbce97.dol-sen@gentoo
1 commit: ae66303721ccd3d42d181f4042db94f731fbce97
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 29 02:29:52 2013 +0000
4 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
5 CommitDate: Sun Dec 29 02:29:52 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=ae663037
7
8 Indent fix.
9
10 ---
11 layman/remotedb.py | 18 +++++++++---------
12 1 file changed, 9 insertions(+), 9 deletions(-)
13
14 diff --git a/layman/remotedb.py b/layman/remotedb.py
15 index d623242..fbd4200 100644
16 --- a/layman/remotedb.py
17 +++ b/layman/remotedb.py
18 @@ -234,15 +234,15 @@ class RemoteDB(DbBase):
19
20 @staticmethod
21 def _create_storage(mpath):
22 - # Create our storage directory if it is missing
23 - if not os.path.exists(os.path.dirname(mpath)):
24 - try:
25 - os.makedirs(os.path.dirname(mpath))
26 - except OSError, error:
27 - raise OSError('Failed to create layman storage direct'
28 - + 'ory ' + os.path.dirname(mpath) + '\n'
29 - + 'Error was:' + str(error))
30 - return
31 + # Create our storage directory if it is missing
32 + if not os.path.exists(os.path.dirname(mpath)):
33 + try:
34 + os.makedirs(os.path.dirname(mpath))
35 + except OSError, error:
36 + raise OSError('Failed to create layman storage directory ' +
37 + os.path.dirname(mpath) + '\n' +
38 + 'Error was:' + str(error))
39 + return
40
41
42 def filepath(self, url):