From 916e5cb41edfa015fd8ec42ba140eb7c0c4cb511 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 4 Dec 2013 17:58:36 +0100 Subject: add #ifdefed ABI break & cleaner solution once the abi break is in place --- cmdline/apt-get.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmdline/apt-get.cc') diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index f0405e75c..5f04135d2 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -136,10 +136,15 @@ bool TryToInstallBuildDep(pkgCache::PkgIterator Pkg,pkgCacheFile &Cache, /*}}}*/ // FIXME: move into more generic code (metaindex ?) +#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR < 13) std::string MetaIndexFileName(metaIndex *metaindex) { // FIXME: this cast is the horror, the horror debReleaseIndex *r = (debReleaseIndex*)metaindex; +#else +std::string MetaIndexFileName(metaIndex *r) +{ +#endif // see if we have a InRelease file std::string PathInRelease = r->MetaIndexFile("InRelease"); -- cgit v1.2.3-70-g09d2