summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2021-01-08 14:07:09 +0000
committerJulian Andres Klode <jak@debian.org>2021-01-08 14:07:09 +0000
commitd35d51ddbdc75512a73e713972f4bbb5a1fd73ae (patch)
tree9fb90d98cb20bb0be193a63efc7c32b513408bad /apt-private
parent4d28ddc501738d571c21ff6d41168f6c53ea462d (diff)
parentbd64bb79537fac17e1474672402d6b0572dce94a (diff)
Merge branch 'pu/phased-updates' into 'master'
Add support for Phased-Update-Percentage See merge request apt-team/apt!129
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/private-show.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/apt-private/private-show.cc b/apt-private/private-show.cc
index 103fa57e4..30b99b013 100644
--- a/apt-private/private-show.cc
+++ b/apt-private/private-show.cc
@@ -563,7 +563,13 @@ bool Policy(CommandLine &CmdL)
else
std::cout << " " << V.VerStr();
- std::cout << " " << Plcy->GetPriority(V) << std::endl;
+ std::cout << " " << Plcy->GetPriority(V);
+
+ if (V.PhasedUpdatePercentage() != 100)
+ std::cout << " "
+ << "(" << _("phased") << " " << V.PhasedUpdatePercentage() << "%)";
+
+ std::cout << std::endl;
for (pkgCache::VerFileIterator VF = V.FileList(); VF.end() == false; ++VF)
{
// Locate the associated index files so we can derive a description