Преглед на файлове

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 години
родител
ревизия
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