[Bug 192356] New: ports-mgmt/pkg: 1.3.4 - quiet delete spends a lot of time doing nothing

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Aug 3 15:19:13 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192356

            Bug ID: 192356
           Summary: ports-mgmt/pkg: 1.3.4 - quiet delete spends a lot of
                    time doing nothing
           Product: Ports Tree
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: beastie at tardisi.com

% uname -v
FreeBSD 9.2-RELEASE-p10 #0: Tue Jul  8 10:48:24 UTC 2014    
root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
% pkg -v
1.3.4

Decided that it was time to cleanup the pkg's installed on my system.  The
other day it was spending a lot of time updating a port, which was a left over
dependency of something else....

Ran pkg_rmleaves....which then spent a long time, and found no further leaves
to remove (which didn't make sense, since I know there would be at least be
many fpc-* ports still to remove.)

After some digging around, narrowed down on the '-q' (quiet) option.

pkg_rmleaves uses "pkg delete -q -y <pkg>"

"pkg delete <pkg>" works, of course.

"pkg delete -y <pkg>" works.

"pkg delete -q <pkg>" and "pkg delete -q -y <pkg>" don't work...though its
spends some time.  "pkg delete -qn <pkg>" works.

....

Looks like query_yesno() is the only way that rc can become true, and its
skipped if quiet is set.

If query_yesno() were called, it understands quiet...to return 'yes or
default'...

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list