]> git.saurik.com Git - apt.git/commit
reinstalling local deb file is no downgrade
authorDavid Kalnischkies <david@kalnischkies.de>
Fri, 1 Jul 2016 11:17:03 +0000 (13:17 +0200)
committerJulian Andres Klode <jak@debian.org>
Wed, 31 Aug 2016 11:49:37 +0000 (13:49 +0200)
commit574ce54dae3089d6d2886bac6b8895510b0ececb
treec74f9f44b1d7c38ac199883e6f6257b36d659b91
parent267314664da07b892bff7c2ee8060faaa3bed74d
reinstalling local deb file is no downgrade

If we have a (e.g. locally built) deb file installed and do try to
install it again apt complained about this being a downgrade, but it
wasn't as it is the very same version… it was just confused into not
merging the versions together which looks like a downgrade then.

The same size assumption is usually good, but given that volatile files
are parsed last (even after the status file) the base assumption no
longer holds, but is easy to adept without actually changing anything in
practice.

(cherry picked from commit e7edb2fef8370d54a4b8e5a01266e6eda81ef84e)
apt-pkg/deb/deblistparser.cc
test/integration/test-apt-get-install-deb