[Pkg-owncloud-commits] [python-owncloud] 22/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 382fb96a94f965d97c585248cf0379ea0f88eb70
Author: craig <craig at lasalle.yumaed.org>
Date: Mon Mar 11 12:57:11 2013 -0700
issue #6, fix the url option in the cfg file..maybe
---
csync.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/csync.py b/csync.py
index 121b5b0..d7ac72a 100755
--- a/csync.py
+++ b/csync.py
@@ -88,7 +88,7 @@ class ownCloudSync():
self.cfg['url'],
USERNAME,
)
- if cfg['dry_run']:
+ if cfg.has_key('dry_run'):
return
self.sync()
@@ -203,12 +203,14 @@ def getConfig(args):
if pargs['pass']:
pargs['pass'] = PASSWORD_SAFE
pprint.pprint(pargs)
+ newArgs = {}
for k, v in args.iteritems():
- if not v:
- del args[k]
+ if v:
+ newArgs[k] = v
+ args = newArgs
cfg = {}
cfgFile = None
- if args['config']:
+ if args.has_key('config'):
cfgFile = args['config']
else:
cfgPath = getConfigPath()
--
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