On 02/11/13 03:23, Thejaswini wrote:
Shawn, Tim, Thanks for looking into this and providing your comments.

In the case of output of the form:
"Removing metadata 1/100"
writing code to compute the goal, i.e. the exact no. of directories
removed, is not worth as it will again add on to the performance.

As per the bug, the no. of metadata to be removed is huge:

edp@mcescher$ du -sh /a/var/pkg/publisher/solaris
  3.2G   /a/var/pkg/publisher/solaris
edp@mcescher$ find /a/var/pkg/publisher/solaris -type f | wc -l
   107422
edp@mcescher$ find /a/var/pkg/publisher/solaris -type d | wc -l
     2385

In such cases, as suggested by Shawn something like below would be good
enough.
# pkg unset-publisher solaris
PHASE                                          ITEMS
Updating package cache                           1/1

IMO we could add an additional jobitem and use it while calling the
progress tracker which would display "Removing package metadata" instead
of   " Updating package cache".

The thing is, I don't know that we need to be specific; "updating package cache" is accurate as the package data we're removing is stored in the package cache.

-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to