zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: zypper and ocs completion
@ 2013-01-28 15:44 Dmitry Roshchin
  2013-01-29 12:35 ` İsmail Dönmez
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Roshchin @ 2013-01-28 15:44 UTC (permalink / raw)
  To: zsh-workers

Patch for _zypper fixes completion in some locales and help messages splitting  (for details see https://bugzilla.novell.com/show_bug.cgi?id=752112).
Patch for _osr sets current openSUSE versions.


Index: zsh/Completion/openSUSE/Command/_zypper
===================================================================
--- zsh.orig/Completion/openSUSE/Command/_zypper
+++ zsh/Completion/openSUSE/Command/_zypper
@@ -28,11 +28,10 @@ _zypper() {
 	local hline
 	local -a cmdlist
 	local tag=0
-	_call_program help-commands zypper help | while read -A hline; do
+	_call_program help-commands LANG=C zypper help | sed -e ':a;N;$!ba;s/\n\t\t\t\t/ /g' | while read -A hline; do
 	    # start parsing with "Global Options:"
 	    [[ $hline =~ "^Global Options:" ]] && tag=1
 	    [[ $tag = 0 ]] && continue
-	    [[ $hline[1] =~ ^\t\t\t\t ]] && continue
 	    # all commands have to start with lower case letters
 	    [[ $hline[1] =~ ^[A-Z] ]] && continue
 	    (( ${#hline} < 2 )) && continue
@@ -51,7 +50,7 @@ _zypper_cmd_do() {
     local hline
     local -a cmdlist
     local tag=0
-    _call_program help-commands zypper help $cmd | while read -A hline; do
+    _call_program help-commands LANG=C zypper help $cmd | while read -A hline; do
 	# start parsing from "Options:"
 	[[ $hline =~ "^Command options:" ]] && tag=1
 	[[ $tag = 0 ]] && continue


Index: zsh/Completion/openSUSE/Command/_osc
===================================================================
--- zsh.orig/Completion/openSUSE/Command/_osc
+++ zsh/Completion/openSUSE/Command/_osc
@@ -16,8 +16,8 @@
 # version 0.2
 #
 
-OSC_BUILD_TARGETS="openSUSE_11.2 openSUSE_11.3 openSUSE_11.4 openSUSE_12.1 openSUSE_Tumbleweed openSUSE_Factory SLE_11_SP1"
-OSC_PROJECTS="openSUSE:Factory openSUSE:Tumbleweed openSUSE:12.1 openSUSE:11.4 openSUSE:11.2 openSUSE:11.3"
+OSC_BUILD_TARGETS="openSUSE_12.1 openSUSE_12.2 openSUSE_12.3 openSUSE_Tumbleweed openSUSE_Factory SLE_11_SP2"
+OSC_PROJECTS="openSUSE:Factory openSUSE:Tumbleweed openSUSE:12.3 openSUSE:12.2 openSUSE:12.1"
 
 # user defined variables $OSC_BUILD_TARGETS_EXTRA and
 # $OSC_PROJECTS_EXTRA can add to the project/build target list


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: zypper and ocs completion
  2013-01-28 15:44 PATCH: zypper and ocs completion Dmitry Roshchin
@ 2013-01-29 12:35 ` İsmail Dönmez
  0 siblings, 0 replies; 2+ messages in thread
From: İsmail Dönmez @ 2013-01-29 12:35 UTC (permalink / raw)
  To: Dmitry Roshchin; +Cc: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 372 bytes --]

Hi;

On Mon, Jan 28, 2013 at 4:44 PM, Dmitry Roshchin <dmitry@roshchin.org>wrote:

> Patch for _zypper fixes completion in some locales and help messages
> splitting  (for details see
> https://bugzilla.novell.com/show_bug.cgi?id=752112).
> Patch for _osr sets current openSUSE versions.
>

We already integrated these for openSUSE 12.3 release, so please apply.

Thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-29 12:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-28 15:44 PATCH: zypper and ocs completion Dmitry Roshchin
2013-01-29 12:35 ` İsmail Dönmez

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).