diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-03-16 22:32:48 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-03-16 23:29:45 +0100 |
commit | a38cec81d349525c447004ef8fe9dc942c8bd9bb (patch) | |
tree | 4df4852338d8f528a90f374937f37d7acf6ddd12 /apt-pkg/depcache.cc | |
parent | 5f060c2776606f3166bd6c64119c31be8ba5d857 (diff) |
do not strip epochs from state version strings
The epoch stripping in this code is done since day one, but in other
places we show a version epochs are not stripped. If epochs are present
in packages they tend to be an important information which we can't just
drop and especially can't drop "sometimes" as that confuses users and
tools alike – so even if removing code in use for (close to) 18 years
feels wrong, it is probably the right choice for consistency.
Closes: 818162
Diffstat (limited to 'apt-pkg/depcache.cc')
-rw-r--r-- | apt-pkg/depcache.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index dd18305d2..4940387a6 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -1700,11 +1700,7 @@ void pkgDepCache::StateCache::Update(PkgIterator Pkg,pkgCache &Cache) CurVersion = ""; if (Pkg->CurrentVer != 0) CurVersion = Pkg.CurrentVer().VerStr(); - - // Strip off the epochs for display - CurVersion = StripEpoch(CurVersion); - CandVersion = StripEpoch(CandVersion); - + // Figure out if its up or down or equal Status = Ver.CompareVer(Pkg.CurrentVer()); if (Pkg->CurrentVer == 0 || Pkg->VersionList == 0 || CandidateVer == 0) |