tag 351520 + patch
thanks
Here is a patch fixing the option parsing problem.
Cheers,
--Seb
--- work/debian/gmailfs/0.7/gmailfs-0.7/mount.gmailfs 2006-02-04
11:40:59.000000000 -0800
+++ /usr/bin/mount.gmailfs 2006-02-05 12:17:44.000000000 -0800
@@ -40,19 +40,20 @@
options, args = parser.parse_args(args)
if len(args) != 2:
- parser.error("Need a mountpoint.")
+ parser.error("Wrong number of arguments")
else:
pyfile, mountpoint = args
odata = options.gmailfsOptions
namedOptions = {}
- for o in odata.split(","):
- try:
- k, v = o.split("=", 1)
- namedOptions[k] = v
- except:
- parser.error("The format of '%s' isn't
'option1=value1,[option2=value2,...]'", (odata,))
+ if odata:
+ for o in odata.split(","):
+ try:
+ k, v = o.split("=", 1)
+ namedOptions[k] = v
+ except:
+ parser.error("The format of '%s' isn't
'option1=value1,[option2=value2,...]'" % (odata,))
if options.promptForPasswd:
namedOptions['password'] = getpass.getpass("Gmail password: ")
@@ -63,7 +64,7 @@
else:
pyfile = os.path.abspath(pyfile)
if not os.path.isfile(pyfile):
- log.error("file %s doesn't exist, or is not a file" % pyfile)
+ sys.stderr.write("file %s doesn't exist, or is not a file\n" % pyfile)
sys.exit(1)
return pyfile, mountpoint, namedOptions, options.useEncfs
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]