diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-08-18 13:49:42 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-08-18 13:49:42 +0200 |
| commit | 3f286a1033479a7cfe40bc0e81c662eb3cd1d0f3 (patch) | |
| tree | 47b2cf2dacc0a0a7b69e3b2e2851af1736475afc /python/tar.cc | |
| parent | f69208a3dc27357b19aad7879efca4300d56d8bb (diff) | |
| download | python-apt-3f286a1033479a7cfe40bc0e81c662eb3cd1d0f3.tar.gz | |
python: Disable the functions in apt_inst if built without COMPAT_0_7.
Developers should use the class-based API instead.
Diffstat (limited to 'python/tar.cc')
| -rw-r--r-- | python/tar.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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 <apt-pkg/extracttar.h> @@ -189,3 +192,4 @@ PyObject *debExtract(PyObject *Self,PyObject *Args) return HandleErrors(Py_None); } /*}}}*/ +#endif // defined(COMPAT_0_7) |
