[Pkg-owncloud-commits] [python-owncloud] 21/96: issue #6, fix the url option in the cfg file..maybe
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Nov 22 01:28:24 UTC 2013
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository python-owncloud.
commit 981bae0dfeac803826a8a91d8ef659dfe80d5567
Author: craig <craig at lasalle.yumaed.org>
Date: Mon Mar 11 12:09:35 2013 -0700
issue #6, fix the url option in the cfg file..maybe
---
csync.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/csync.py b/csync.py
index 9ee83b9..121b5b0 100755
--- a/csync.py
+++ b/csync.py
@@ -203,6 +203,9 @@ def getConfig(args):
if pargs['pass']:
pargs['pass'] = PASSWORD_SAFE
pprint.pprint(pargs)
+ for k, v in args.iteritems():
+ if not v:
+ del args[k]
cfg = {}
cfgFile = None
if args['config']:
@@ -229,6 +232,7 @@ def getConfig(args):
cfg.setdefault('pass', '')
cfg.setdefault('sslFingerprint', '')
cfg.setdefault('davPath', 'remote.php/webdav/')
+ cfg.setdefault('url', '')
if os.environ.has_key('OCPASS'):
cfg['pass'] = os.environ['OCPASS']
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/python-owncloud.git
More information about the Pkg-owncloud-commits
mailing list