Corrected list of priority in 'repos' command (bnc #436688).
authorSusanne Oberhauser <froh@novell.com>
Fri, 3 Apr 2009 10:23:59 +0000 (12:23 +0200)
committerJán Kupec <jkupec@suse.cz>
Fri, 3 Apr 2009 10:23:59 +0000 (12:23 +0200)
src/repos.cc

index cdbc412..3faa9f8 100644 (file)
@@ -737,7 +737,7 @@ static void print_repo_list(Zypper & zypper,
     tr << (repo.autorefresh() ? _("Yes") : _("No"));
     // priority
     if (all || showprio)
-      tr << str::numstring (repo.priority());
+      tr << str::numstring (repo.priority(), 4); // output flush right; looks nicer and sorts correctly
     // type
     if (all)
       tr << repo.type().asString();
@@ -2035,7 +2035,7 @@ static void service_list_tr(
     if (service)
       tr << "";
     else
-      tr << str::numstring (repo->priority());
+      tr << str::numstring (repo->priority(), 4); // output flush right; looks nicer and sorts correctly
   }
 
   // type