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 /app-admin/python-updater/files
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
Diffstat (limited to 'app-admin/python-updater/files')
-rw-r--r--app-admin/python-updater/files/python-updater-r133-custom-package-manager-command.patch51
1 files changed, 51 insertions, 0 deletions
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