We need the 'repo' variable in enter_completion() which assumes
it's global, so make it global.
Fixes: c4d10541ed1e ("ftp: convert to internal command")
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
bup_python_ldflags_embed=$("$bup_python_config" --ldflags) || exit $?
fi
+bup_python_cflags="$bup_python_cflags -fPIC"
+
case "$OSTYPE" in
darwin*)
# For at least 10.3+ (2003+)
bup_python_ldflags="$bup_python_ldflags -bundle -undefined dynamic_lookup"
;;
*)
- bup_python_ldflags="$bup_python_ldflags -shared -fPIC"
+ bup_python_ldflags="$bup_python_ldflags -shared"
;;
esac
from bup.repo import LocalRepo
+repo = None
+
class OptionError(Exception):
pass
git.check_repo_or_die()
+ global repo
+
sys.stdout.flush()
out = byte_stream(sys.stdout)
stdin = byte_stream(sys.stdin)