From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E1F82138CD0 for ; Sat, 30 May 2015 04:46:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CFDB0E086A; Sat, 30 May 2015 04:46:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7FD32E086A for ; Sat, 30 May 2015 04:46:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AAB7A340FA1 for ; Sat, 30 May 2015 04:46:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9ACC79ED for ; Sat, 30 May 2015 04:46:27 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1432960658.ad3b55a6ebe3af2eb795cdbd9b80ce2bb424ea6c.vapier@gentoo> Subject: [gentoo-commits] proj/crossdev:master commit in: / X-VCS-Repository: proj/crossdev X-VCS-Files: crossdev X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: ad3b55a6ebe3af2eb795cdbd9b80ce2bb424ea6c X-VCS-Branch: master Date: Sat, 30 May 2015 04:46:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: fc5eec07-bd51-45f8-866d-3a9ab4099726 X-Archives-Hash: 63acd8f2a54baf08e408dbf3a91390ed commit: ad3b55a6ebe3af2eb795cdbd9b80ce2bb424ea6c Author: Mike Frysinger gentoo org> AuthorDate: Sat May 30 04:33:52 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sat May 30 04:37:38 2015 +0000 URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=ad3b55a6 crossdev: use qmerge for unmerging packages The latest version of qmerge should be reliable when it comes to unmerge, so start using that when uninstalling targets. It's significantly faster than emerge. Signed-off-by: Mike Frysinger gentoo.org> crossdev | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/crossdev b/crossdev index 677b5ae..b5f9245 100755 --- a/crossdev +++ b/crossdev @@ -416,15 +416,8 @@ uninstall() { rm -f /etc/revdep-rebuild/05cross-${CTARGET} rmdir /etc/revdep-rebuild 2>/dev/null - rmdir /var/db/pkg/cross-${CTARGET} 2>/dev/null - if [[ -d /var/db/pkg/cross-${CTARGET} ]] ; then - export CLEAN_DELAY=0 - cd /var/db/pkg - local pkgs=( cross-${CTARGET}/* ) - emerge -qC ${pkgs[@]/#/=} || exit 1 - else - ewarn "${CTARGET}: no packages installed; will clean out known files" - fi + # Unmerge all toolchain packages for this target. + qmerge -Uqy $(qlist -IC "cross-${CTARGET}/") # clean out known toolchain files (binutils/gcc) for f in \