From 3f286a1033479a7cfe40bc0e81c662eb3cd1d0f3 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 18 Aug 2009 13:49:42 +0200 Subject: python: Disable the functions in apt_inst if built without COMPAT_0_7. Developers should use the class-based API instead. --- python/tar.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/tar.cc') diff --git a/python/tar.cc b/python/tar.cc index b93ba31a..b994d4e7 100644 --- a/python/tar.cc +++ b/python/tar.cc @@ -4,10 +4,13 @@ /* ###################################################################### Tar Inteface + * THIS FILE IS COMPLETELY DEPRECATED, AND NOT USED ANYMORE IF BUILT * + * WITHOUT COMPATIBILITY. * ##################################################################### */ /*}}}*/ // Include Files /*{{{*/ +#ifdef COMPAT_0_7 #include "generic.h" #include @@ -189,3 +192,4 @@ PyObject *debExtract(PyObject *Self,PyObject *Args) return HandleErrors(Py_None); } /*}}}*/ +#endif // defined(COMPAT_0_7) -- cgit v1.2.3