summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-12-04 17:58:36 +0100
committerMichael Vogt <mvo@debian.org>2013-12-04 17:58:36 +0100
commit916e5cb41edfa015fd8ec42ba140eb7c0c4cb511 (patch)
tree351f7803644be7bac1a5458553e6d801850101bc /cmdline
parentd85d0c09cee3aa5b84e45f46595f6dd617ce64b6 (diff)
add #ifdefed ABI break & cleaner solution once the abi break is in place
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc5
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");