When used with the Python "fuse" module not installed on the system, the
bup-fuse command exits with an error.
To avoid confusing (or frustrating?) users, print a friendlier error
message that better describes what happens.
Signed-off-by: Gabriel Filion <lelutin@gmail.com>
#!/usr/bin/env python
-import sys, os, stat, errno, fuse, re, time, tempfile
+import sys, os, stat, errno, re, time, tempfile
from bup import options, git, vfs
from bup.helpers import *
+try:
+ import fuse
+except ImportError:
+ log('bup: error: The python "fuse" module is missing.\n' +
+ 'To use bup fuse, first install the python-fuse package.\n')
+ sys.exit(1)
class Stat(fuse.Stat):