diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2007-07-07 23:16:01 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2007-07-07 23:16:01 +0000 |
commit | 34d3ffedb797fa2bb11542ba55193bd1849a8be1 (patch) | |
tree | 96139dfdf1f8ec6cc940ee88a4d0975f62f19544 /dev-util/pkgcore-checks | |
parent | Add missing IUSE="test" (diff) | |
download | gentoo-2-34d3ffedb797fa2bb11542ba55193bd1849a8be1.tar.gz gentoo-2-34d3ffedb797fa2bb11542ba55193bd1849a8be1.tar.bz2 gentoo-2-34d3ffedb797fa2bb11542ba55193bd1849a8be1.zip |
add patch from upstream to fix visibility.py
(Portage version: 2.1.2.9)
Diffstat (limited to 'dev-util/pkgcore-checks')
4 files changed, 75 insertions, 1 deletions
diff --git a/dev-util/pkgcore-checks/ChangeLog b/dev-util/pkgcore-checks/ChangeLog index e958247630d1..95f52cec4c2e 100644 --- a/dev-util/pkgcore-checks/ChangeLog +++ b/dev-util/pkgcore-checks/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/pkgcore-checks # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgcore-checks/ChangeLog,v 1.28 2007/06/16 11:19:18 dertobi123 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgcore-checks/ChangeLog,v 1.29 2007/07/07 23:16:01 mr_bones_ Exp $ + +*pkgcore-checks-0.4-r1 (07 Jul 2007) + + 07 Jul 2007; Michael Sterrett <mr_bones_@gentoo.org> + +files/pkgcore-checks-0.4-fix.patch, +pkgcore-checks-0.4-r1.ebuild: + add patch from upstream to fix visibility.py 16 Jun 2007; Tobias Scherbaum <dertobi123@gentoo.org> pkgcore-checks-0.4.ebuild: diff --git a/dev-util/pkgcore-checks/files/digest-pkgcore-checks-0.4-r1 b/dev-util/pkgcore-checks/files/digest-pkgcore-checks-0.4-r1 new file mode 100644 index 000000000000..51f73787f2a6 --- /dev/null +++ b/dev-util/pkgcore-checks/files/digest-pkgcore-checks-0.4-r1 @@ -0,0 +1,3 @@ +MD5 e8936540867686449dc2c4b0cccada3d pkgcore-checks-0.4.tar.bz2 50315 +RMD160 070cc72c4896b15a2655c07c7ec2b1e6f90e56cf pkgcore-checks-0.4.tar.bz2 50315 +SHA256 319de6080962c3e1f07677de910b51e162196a8544774202e011a0aeea467324 pkgcore-checks-0.4.tar.bz2 50315 diff --git a/dev-util/pkgcore-checks/files/pkgcore-checks-0.4-fix.patch b/dev-util/pkgcore-checks/files/pkgcore-checks-0.4-fix.patch new file mode 100644 index 000000000000..4254a43616bd --- /dev/null +++ b/dev-util/pkgcore-checks/files/pkgcore-checks-0.4-fix.patch @@ -0,0 +1,13 @@ +=== modified file 'pkgcore_checks/visibility.py' +--- pkgcore_checks/visibility.py 2007-04-05 18:41:54 +0000 ++++ pkgcore_checks/visibility.py 2007-07-07 22:56:25 +0000 +@@ -130,6 +130,8 @@ + nonexistant.add(node) + self.query_cache[h] = () + self.profiles.global_insoluable.add(h) ++ elif not self.query_cache[h]: ++ nonexistant.add(node) + + if nonexistant: + reporter.add_report(NonExistantDeps(pkg, attr, nonexistant)) + diff --git a/dev-util/pkgcore-checks/pkgcore-checks-0.4-r1.ebuild b/dev-util/pkgcore-checks/pkgcore-checks-0.4-r1.ebuild new file mode 100644 index 000000000000..cc63ca05fc55 --- /dev/null +++ b/dev-util/pkgcore-checks/pkgcore-checks-0.4-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgcore-checks/pkgcore-checks-0.4-r1.ebuild,v 1.1 2007/07/07 23:16:01 mr_bones_ Exp $ + +inherit distutils + +DESCRIPTION="pkgcore developmental repoman replacement" +HOMEPAGE="http://www.pkgcore.org/" +SRC_URI="http://www.pkgcore.org/releases/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +RDEPEND=">=sys-apps/pkgcore-0.3 + dev-python/snakeoil + >=dev-lang/python-2.4" +DEPEND="${RDEPEND}" + +DOCS="NEWS AUTHORS" + +PYTHON_MODNAME=pkgcore_checks + +src_unpack() { + distutils_src_unpack + cd "${S}" + epatch "${FILESDIR}/${P}-fix.patch" +} + +src_test() { + "${python}" setup.py test || die "tests returned non zero" +} + +pkg_postinst() { + einfo "updating pkgcore plugin cache" + pplugincache pkgcore_checks.plugins pkgcore.plugins + # This is left behind by pkgcore-checks 0.3. + rm -f "${ROOT}"usr/lib/python${PYVER}/site-packages/pkgcore_checks/plugins/plugincache + distutils_pkg_postinst +} + +pkg_postrm() { + python_version + # Careful not to remove this on up/downgrades. + local sitep="${ROOT}"usr/lib/python${PYVER}/site-packages + if [[ -e "${sitep}/pkgcore_checks/plugins/plugincache2" ]] && + ! [[ -e "${sitep}/pkgcore_checks/base.py" ]]; then + rm "${sitep}/pkgcore_checks/plugins/plugincache2" + fi + distutils_pkg_postrm +} |