Просмотр исходного кода

Do not right justify the database reading progress percent counter

There's an odd space most for most of the progress, which will never be
actually seen filled by the 100%. Seems slightly better to just not
indent it.
Guillem Jover лет назад: 17
Родитель
Сommit
3582817fd9
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      debian/changelog
  2. 1 1
      lib/progress.c

+ 1 - 0
debian/changelog

@@ -124,6 +124,7 @@ dpkg (1.15.1) UNRELEASED; urgency=low
   * Remove obsolete --force-auto-select dpkg option.
   * Remove obsolete --force-auto-select dpkg option.
   * Remove obsolete priorities support from dpkg.
   * Remove obsolete priorities support from dpkg.
   * Remove obsolete 822-date program.
   * Remove obsolete 822-date program.
+  * Do not right justify the database reading progress percent counter.
 
 
   [ Frank Lichtenheld ]
   [ Frank Lichtenheld ]
   * Dpkg::Version: Remove unnecessary function next_elem which just
   * Dpkg::Version: Remove unnecessary function next_elem which just

+ 1 - 1
lib/progress.c

@@ -61,7 +61,7 @@ progress_step(struct progress *progress)
 
 
 	progress->last_percent = cur_percent;
 	progress->last_percent = cur_percent;
 
 
-	printf("\r%s%3d%%", progress->text, cur_percent);
+	printf("\r%s%d%%", progress->text, cur_percent);
 }
 }
 
 
 void
 void