Bug 60530 - Bugs fix in Gentoo's Zsh completion
Bug#: 60530 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: REMIND Assigned To: usata@gentoo.org Reported By: baptiste.daroussin@gmail.com
Component: Applications
URL: 
Summary: Bugs fix in Gentoo's Zsh completion
Keywords:  
Status Whiteboard: 
Opened: 2004-08-16 01:33 0000
Description:   Opened: 2004-08-16 01:33 0000
_gcc-config:
    remove dependencies to sed (pure zsh code now ;))
    Change '(- :)'':profiles:_gcc_profile' to '(- :):profiles:_gcc_profile'
    to make it work (at least for me ;)).
    added local definition for profile
_portage:
    add local definition to some vars
_gentoolkit:
    add local definition for some vars
    remove dependencies to sed/grep (pure zsh code now ;)) (quite longer, can 
    be optimize ;))
    Change '(- :)'':' to '(- :):overlays:_overlays' to '(- 
    :):overlays:_overlays'
    to make it work (at least for me ;)).

I don't like the way the completion for qpkg is done, I'll have a look at it as soon as I'll have time.

I also remove all "ugly" sed, cat, since zsh can do the stuff himself.

Reproducible: Always
Steps to Reproduce:
1. patch the function
2. try again ;)
3.

------- Comment #1 From Bapt 2004-08-16 01:34:41 0000 -------
Created an attachment (id=37515) [details]
patch for _portage

------- Comment #2 From Bapt 2004-08-16 01:35:20 0000 -------
Created an attachment (id=37516) [details]
patch for _gentoolkit

------- Comment #3 From Bapt 2004-08-16 01:35:42 0000 -------
Created an attachment (id=37517) [details]
patch for _gcc-config

------- Comment #4 From Mamoru KOMACHI (RETIRED) 2004-08-17 14:41:17 0000 -------
Applied these patches. Thanks. When you finish prettifying qpkg please let me
know.

------- Comment #5 From oberyno 2004-08-17 20:32:09 0000 -------
Created an attachment (id=37637) [details]
gcc-config patch atop baptux's patched gcc-config

Thanks for the fixes baptux. 
_gcc-config:
   Your patch only lists the last profile for me. 
_gentoolkit: qpkg and equery
  It's slow because of this part:
    #Reading informations from Portage
    portdir="$(portageq portdir)"
    #pkgdir="$(portageq pkgdir)"
    portdir_overlay="$(portageq portdir_overlay)"
  If that section is reverted, it will be fast again.
  If there are any other problems with it, I'll be willing to fix them.

------- Comment #6 From Bapt 2004-08-17 23:56:08 0000 -------
I'll pretify qpkg when I'll have time, and then open a new bug ;) 
(the goal is to make it able to at least do qpkg -q -I <something>, it can't do it know).
For the rest, the fact is only that I hate seeing grep/cat/.../other stuff like that in zsh scripts,  moreover in completion function. Completion should be pure zsh (I think)