Commit d8916a43 authored by ben's avatar ben

compilec compiles librsync also, --print-statistics compatible with

Security.py now.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@164 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent b3039735
......@@ -101,7 +101,8 @@ def set_allowed_requests(sec_level):
"Log.open_logfile_allconn",
"Log.close_logfile_allconn",
"SetConnections.add_redirected_conn",
"RedirectedRun"]
"RedirectedRun",
"sys.stdout.write"]
if sec_level == "minimal": pass
elif sec_level == "read-only" or sec_level == "update-only":
allowed_requests.extend(["C.make_file_dict",
......
......@@ -9,7 +9,11 @@ sys.argv.append("build")
setup(name="CModule",
version="0.9.0",
description="rdiff-backup's C component",
ext_modules=[Extension("C", ["cmodule.c"])])
ext_modules=[Extension("C", ["cmodule.c"]),
Extension("_librsync",
["_librsyncmodule.c"],
libraries=["rsync"])])
assert not os.system("mv build/lib.linux-i686-2.2/C.so .")
assert not os.system("mv build/lib.linux-i686-2.2/_librsync.so .")
assert not os.system("rm -rf build")
......@@ -101,7 +101,8 @@ def set_allowed_requests(sec_level):
"Log.open_logfile_allconn",
"Log.close_logfile_allconn",
"SetConnections.add_redirected_conn",
"RedirectedRun"]
"RedirectedRun",
"sys.stdout.write"]
if sec_level == "minimal": pass
elif sec_level == "read-only" or sec_level == "update-only":
allowed_requests.extend(["C.make_file_dict",
......
......@@ -9,7 +9,11 @@ sys.argv.append("build")
setup(name="CModule",
version="0.9.0",
description="rdiff-backup's C component",
ext_modules=[Extension("C", ["cmodule.c"])])
ext_modules=[Extension("C", ["cmodule.c"]),
Extension("_librsync",
["_librsyncmodule.c"],
libraries=["rsync"])])
assert not os.system("mv build/lib.linux-i686-2.2/C.so .")
assert not os.system("mv build/lib.linux-i686-2.2/_librsync.so .")
assert not os.system("rm -rf build")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment