From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S2mIg-0005zh-UA for garchives@archives.gentoo.org; Wed, 29 Feb 2012 16:22:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA9D7E0942; Wed, 29 Feb 2012 16:22:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7DF66E0942 for ; Wed, 29 Feb 2012 16:22:38 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E00F91B4008 for ; Wed, 29 Feb 2012 16:22:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 5C7D8E5407 for ; Wed, 29 Feb 2012 16:22:35 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1330532522.072726d88e2c4b31f5249e45c5b3a33730eab3e0.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: 072726d88e2c4b31f5249e45c5b3a33730eab3e0 X-VCS-Branch: master Date: Wed, 29 Feb 2012 16:22:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 5261a306-1482-49fd-87db-a2ebfacbb94d X-Archives-Hash: bd30495909cb0edab9862e2a74038158 commit: 072726d88e2c4b31f5249e45c5b3a33730eab3e0 Author: Mike Frysinger gentoo org> AuthorDate: Wed Feb 29 16:22:02 2012 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Wed Feb 29 16:22:02 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/crossdev.git;= a=3Dcommit;h=3D072726d8 crossdev: reverse masters list in layout.conf Portage reads this in reverse order, so we have to populate it in reverse order as well. Signed-off-by: Mike Frysinger gentoo.org> --- crossdev | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crossdev b/crossdev index 68389d5..14515ca 100755 --- a/crossdev +++ b/crossdev @@ -848,9 +848,11 @@ set_metadata() { fi [[ -z ${name} ]] && continue =20 - # If this repo has an eclass dir, mark it as a master + # If this repo has an eclass dir, mark it as a master. + # Note: portage reads the masters list in reverse order, + # so we have to prepare it the same way. if [[ -d ${d}/eclass ]] ; then - has ${name} ${masters} || masters+=3D" ${name}" + has ${name} ${masters} || masters=3D"${name} ${masters}" fi =20 # If one of the overlays uses thin manifests, then turn it on @@ -878,7 +880,7 @@ set_metadata() { cat <<-EOF > "${layout}" ${autogen_tag} # Delete the above line if you want to manage this file yourself - masters =3D${masters} + masters =3D ${masters% } $(printf '%b' "${this_manifests}") EOF }