summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-12-05 20:03:52 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-12-05 20:03:52 +0000
commit6e4603c988d350be5e4852e2dfbeab535ce70c26 (patch)
treea2fbe82c9cd4bf1ebc28d6f7938dfaacf6e45f2f
parentReplace gnome-python dependency with only required modules (diff)
downloadhistorical-6e4603c988d350be5e4852e2dfbeab535ce70c26.tar.gz
historical-6e4603c988d350be5e4852e2dfbeab535ce70c26.tar.bz2
historical-6e4603c988d350be5e4852e2dfbeab535ce70c26.zip
Bug #249891 - Add support for just calling another binary with the identical syntax to the package manager. Infra-requested feature, commit acked by hawking@gentoo.org.
Package-Manager: portage-2.2_rc16/cvs/Linux 2.6.28-rc5-00117-g7f0f598 x86_64
-rw-r--r--app-admin/python-updater/ChangeLog11
-rw-r--r--app-admin/python-updater/Manifest14
-rw-r--r--app-admin/python-updater/files/python-updater-r133-custom-package-manager-command.patch51
-rw-r--r--app-admin/python-updater/python-updater-0.6-r1.ebuild31
4 files changed, 95 insertions, 12 deletions
diff --git a/app-admin/python-updater/ChangeLog b/app-admin/python-updater/ChangeLog
index bb3862f967bd..812a8b972a39 100644
--- a/app-admin/python-updater/ChangeLog
+++ b/app-admin/python-updater/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for app-admin/python-updater
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/python-updater/ChangeLog,v 1.32 2008/08/25 09:56:28 hawking Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/python-updater/ChangeLog,v 1.33 2008/12/05 20:03:52 robbat2 Exp $
+
+*python-updater-0.6-r1 (05 Dec 2008)
+
+ 05 Dec 2008; Robin H. Johnson <robbat2@gentoo.org>
+ +files/python-updater-r133-custom-package-manager-command.patch,
+ +python-updater-0.6-r1.ebuild:
+ Bug #249891 - Add support for just calling another binary with the
+ identical syntax to the package manager. Infra-requested feature, commit
+ acked by hawking@gentoo.org.
*python-updater-0.6 (25 Aug 2008)
diff --git a/app-admin/python-updater/Manifest b/app-admin/python-updater/Manifest
index 1b9d35ecb829..2b980d121a2d 100644
--- a/app-admin/python-updater/Manifest
+++ b/app-admin/python-updater/Manifest
@@ -1,19 +1,11 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+AUX python-updater-r133-custom-package-manager-command.patch 1899 RMD160 c9fde8ea6d4b5ed7844882b8ebdba685b5818ac6 SHA1 dc5696cfff59d8ae4463d8fa941ce45483d8a776 SHA256 abdbe2068c5ab0adb34dfe3fe734c3716012b76fd5bf1cd8776f4ce86b18a10c
DIST python-updater-0.2.bz2 2422 RMD160 4dc376f2df2dd9b814f2da0a9b2552de4376a073 SHA1 ef27d0661cc3f2ff0731a1ec370107e626eec18e SHA256 9ce7fb18051842d2f20de3ed19fdeabf937533e611219e68fde033ce3ebbab73
DIST python-updater-0.5.tar.bz2 5489 RMD160 c10842c9eda650830518258c679ded43ac1ab6b1 SHA1 788abeff419cd6f72a2b95ff4b6ecafa840f2709 SHA256 cb69ac130162be9b7c33bd71574893cc4235e4d09b0ed844b9b87e382df96905
DIST python-updater-0.6.tar.bz2 5657 RMD160 d89fc6a95f192cdaeab659000f2046ab2b7528af SHA1 e166306429be0b86266f5430f17ee762b2c60469 SHA256 aa34ef91bac1dac451e84a08628a902b23f6eb3e74e0daadff15c36dc3d99f86
EBUILD python-updater-0.2.ebuild 702 RMD160 a77b7368e0f479237ee811b16f3932492043961d SHA1 89ee087c6157f54226b38d7607fb3c64c9020122 SHA256 7d105215e29ba73975c5738b2b860e04fba314c76fe0579e43ba2089a5be773e
EBUILD python-updater-0.5.ebuild 790 RMD160 96e12fab9c64e79761fc880b9e57069ae766b3e6 SHA1 2987e7daced7f7cc3447b552875720f77bbf5b51 SHA256 28559faee61ec34410b5e35c388c040f4434882faf75ffea536e19b119690aad
+EBUILD python-updater-0.6-r1.ebuild 936 RMD160 5cc9e59a5c43628d5c321c9ac834cd4dd82b1e1f SHA1 dc348e245a7e1b399f877eba6eaf4aed3bf54da0 SHA256 02d0a8b6e130b6dfecbfa90a761a1956c37bc1066d167a5f535213a1d15d0bb0
EBUILD python-updater-0.6.ebuild 803 RMD160 5bb43eb0dc13552538fee500be535b1513926470 SHA1 e74caf751c9d02d84e230325fef8559383d1a5bf SHA256 c54d2026de7b0562148b7e7f3bb9aec1c78f87a361b53bd3f62df88cd17d1ed0
EBUILD python-updater-9999.ebuild 797 RMD160 baf577ebc6a0c8bcba37bc9850cf5d0c27d28a3e SHA1 7dfce5f3afc24f8bad5d7ca282acdebd0458b180 SHA256 96685de6730989b66c41bd27687c59e0d0dadcbb1111dae8181a2c872079f737
-MISC ChangeLog 4218 RMD160 828df8e1afbeade0ec897ae8031c383fb9d2dcc0 SHA1 715f0de3b04b1190f7c1f3004af2e9b3e737d939 SHA256 6e81feb11972e9e63debf47eb4012442cdbc0643cc8edde4898aae934a5a549b
+MISC ChangeLog 4585 RMD160 fae9788643ddffb6da3a3cc3e5d33ab8b04a7b32 SHA1 828b2761815027885d3f6e8810eff55f16e59689 SHA256 56b6a57f1d5473e98d76406e2258db4f6729c703520f12de52a1bbf982399de6
MISC metadata.xml 159 RMD160 900a8c55d7a7d2f6312594769aaf941bf9e99c7f SHA1 c8e604d56dae898258b5254d78cfeac0b981e288 SHA256 9f01104d3484792496faff4805eed0ecea2352a897151f3397d49a13800037b4
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
-
-iEYEARECAAYFAkkDkl0ACgkQ67wieSYcaxcwPACeJuAbGsiDYmHLHcY6C79nRIGg
-1DcAoO7QDgFhHa1+JttjiQgMDBNfNL8F
-=Rp4A
------END PGP SIGNATURE-----
diff --git a/app-admin/python-updater/files/python-updater-r133-custom-package-manager-command.patch b/app-admin/python-updater/files/python-updater-r133-custom-package-manager-command.patch
new file mode 100644
index 000000000000..6569614f74a3
--- /dev/null
+++ b/app-admin/python-updater/files/python-updater-r133-custom-package-manager-command.patch
@@ -0,0 +1,51 @@
+------------------------------------------------------------------------
+r134 | robbat2 | 2008-12-05 11:58:43 -0800 (Fri, 05 Dec 2008) | 1 line
+
+Bug #249891 - Add support for just calling another binary with the identical
+syntax to the package manager. Infra-requested feature, commit acked by
+hawking@gentoo.org.
+------------------------------------------------------------------------
+Index: python-updater
+===================================================================
+--- python-updater (revision 133)
++++ python-updater (revision 134)
+@@ -39,6 +39,7 @@
+ SUPPORTED_PMS="portage pkgcore paludis"
+ PMS_COMMAND=( "emerge" "pmerge" "paludis" )
+ PMS_OPTIONS=( "-vD1" "-Do" "-i1" )
++CUSTOM_PMS_COMMAND=""
+
+ # Checks
+ CHECK_ECLASS=0
+@@ -86,6 +87,9 @@
+ -c CMD, --command CMD
+ Pipe found packages to command CMD instead of invoking package
+ manager. Only for debug and script use.
++ --package-manager-command CMD
++ Call CMD instead of the default command for the specified
++ package manager.
+ -eCHECK --enable-CHECK
+ Enable CHECK where CHECK can be one of:
+ * eclass (Disabled by default)
+@@ -220,6 +224,10 @@
+ PMS_INDEX=$((${PMS_INDEX} + 1))
+ done
+ ;;
++ --package-manager-command)
++ shift
++ CUSTOM_PMS_COMMAND="$1"
++ ;;
+ -c|--command)
+ shift
+ PIPE_COMMAND="$1"
+@@ -429,7 +437,9 @@
+
+ # (Pretend to) remerge packages
+ if [[ -n "${PKGS_TO_REMERGE}" ]]; then
+- cmd="${PMS_COMMAND[${PMS_INDEX}]} ${PMS_OPTIONS[${PMS_INDEX}]} ${PKGS_TO_REMERGE}"
++ pmscmd="${CUSTOM_PMS_COMMAND}"
++ [ -z "${pmscmd}" ] && pmscmd="${PMS_COMMAND[${PMS_INDEX}]}"
++ cmd="${pmscmd} ${PMS_OPTIONS[${PMS_INDEX}]} ${PKGS_TO_REMERGE}"
+ einfo ${cmd}
+ ${cmd}
+ else
diff --git a/app-admin/python-updater/python-updater-0.6-r1.ebuild b/app-admin/python-updater/python-updater-0.6-r1.ebuild
new file mode 100644
index 000000000000..7f5d9f9e3a42
--- /dev/null
+++ b/app-admin/python-updater/python-updater-0.6-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/python-updater/python-updater-0.6-r1.ebuild,v 1.1 2008/12/05 20:03:52 robbat2 Exp $
+
+inherit eutils
+
+DESCRIPTION="Script used to remerge python packages when changing Python version."
+HOMEPAGE="http://www.gentoo.org/proj/en/Python"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=""
+RDEPEND="!<dev-lang/python-2.3.6-r2
+ || ( >=sys-apps/portage-2.1.2 sys-apps/pkgcore sys-apps/paludis )"
+
+src_unpack() {
+ unpack "${A}"
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-r133-custom-package-manager-command.patch
+}
+
+src_install()
+{
+ dosbin ${PN} || die "dosbin failed"
+ doman ${PN}.1 || die "doman failed"
+ dodoc AUTHORS ChangeLog || die "dodoc failed"
+}