import sys, os, pwd, subprocess, errno, socket, select, mmap, stat, re, struct
import heapq, operator, time
from bup import _version, _helpers
+import bup._helpers as _helpers
# This function should really be in helpers, not in bup.options. But we
# want options.py to be standalone so people can include it in other projects.
return out
+def detect_fakeroot():
+ "Return True if we appear to be running under fakeroot."
+ return os.getenv("FAKEROOTKEY") != None
+
+
_username = None
def username():
"""Get the user's login name."""
log('%-70s\n' % e)
+def clear_errors():
+ global saved_errors
+ saved_errors = []
+
+
def handle_ctrl_c():
"""Replace the default exception handler for KeyboardInterrupt (Ctrl-C).