diff options
author | Michael Vogt <mvo@debian.org> | 2013-12-04 17:58:36 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-12-04 17:58:36 +0100 |
commit | 916e5cb41edfa015fd8ec42ba140eb7c0c4cb511 (patch) | |
tree | 351f7803644be7bac1a5458553e6d801850101bc /cmdline/apt-get.cc | |
parent | d85d0c09cee3aa5b84e45f46595f6dd617ce64b6 (diff) |
add #ifdefed ABI break & cleaner solution once the abi break is in place
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r-- | cmdline/apt-get.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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"); |