]> git.saurik.com Git - apt.git/commit
better non-virtual metaIndex.LocalFileName() implementation
authorDavid Kalnischkies <david@kalnischkies.de>
Thu, 6 Nov 2014 11:53:59 +0000 (12:53 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Sat, 8 Nov 2014 13:26:00 +0000 (14:26 +0100)
commitf105aaba433f5a8b9c4326dd0d704501bf07d1e5
treee614eea939eedd34bfcb37e42c60261d2f654d60
parent60b64ffc3468579183abc1bac0179943d782a52e
better non-virtual metaIndex.LocalFileName() implementation

We can't add a new virtual method without breaking the ABI, but we can
freely add new methods, so for older ABIs we just implement this method
with a dynamic_cast, so that clients can be more ignorant about the API
here and especially don't need to pull a very dirty trick by assuming
internal knowledge (like apt-get did here).
apt-pkg/deb/debmetaindex.cc
apt-pkg/deb/debmetaindex.h
apt-pkg/metaindex.cc [new file with mode: 0644]
apt-pkg/metaindex.h
cmdline/apt-get.cc
debian/libapt-pkg4.15.symbols