summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-04-16 20:06:14 +0200
committerJulian Andres Klode <jak@debian.org>2009-04-16 20:06:14 +0200
commit337c885e7dd531858c35b256d974989bac6463df (patch)
treefdd82757c31340096016125dc7f5e06d87aa9d6c /debian/rules
parent49c10e3b9f6760280761f1255f3182637ba0ac9e (diff)
downloadpython-apt-337c885e7dd531858c35b256d974989bac6463df.tar.gz
* apt/*.py: Initial rename work for Bug#481061
A new module, apt.deprecation, is introduced containing functions and classes which assist in the deprecation. The apt_pkg extension gets a new attribute, _COMPAT_0_7 which can be set by defining COMPAT_0_7 at compile time (-DCOMPAT_0_7). The names are changed, and compatibility functions are enabled if bool(apt_pkg._COMPAT_0_7) == True, i.e. if the package has been built with backward compatibility fixes. This commit changes the apt and aptsources packages, the apt_pkg and apt_inst extensions will be the next renames.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 9d0219e2..5fc6e13b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,6 +16,9 @@ PKG=python-apt
DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
DEB_COMPRESS_EXCLUDE:=.html .js _static/* _sources/* _sources/*/* .inv
DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
+
+# Define COMPAT_0_7 to get all the deprecated interfaces.
+export CFLAGS+=-DCOMPAT_0_7
export DEBVER