Fix yum package completions similar to the rpm fix #1269

Closed
dbrodie opened this Issue Jan 27, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@dbrodie

dbrodie commented Jan 27, 2014

In commit 71f6986 rpm package completions was fixed, a similar fix is needed to be done to yum completions a few lines up.

--- __fish_print_packages.fish  2014-01-27 23:40:33.991162908 +0200
+++ __fish_print_packages.fish.bak  2014-01-27 23:39:29.373575262 +0200
@@ -46,7 +46,7 @@
        end

        # Remove package version information from output and pipe into cache file
-       /usr/share/yum-cli/completion-helper.py list all -d 0 -C | cut -d '.' -f 1 | sed '1d' | sed '/^\s/d' | sed -e 's/$/'\t$package'/' >$cache_file &
+       /usr/share/yum-cli/completion-helper.py list all -d 0 -C >$cache_file | cut -d '.' -f 1 | sed '1d' | sed '/^\s/d' | sed -e 's/$/'\t$package'/' &
    end

    # Rpm is too slow for this job, so we set it up to do completions

@zanchey zanchey closed this in 8fbffe2 Jan 29, 2014

@zanchey

This comment has been minimized.

Show comment
Hide comment
@zanchey

zanchey Jan 29, 2014

Member

As far as I can tell, sed '1d' | sed '/^\s/d' does nothing.

8fbffe2 should fix this; try rm /tmp/.yum-cache.$USER /tmp/.rpm-cache.$USER to force a new cache after installing the corrected version.

Member

zanchey commented Jan 29, 2014

As far as I can tell, sed '1d' | sed '/^\s/d' does nothing.

8fbffe2 should fix this; try rm /tmp/.yum-cache.$USER /tmp/.rpm-cache.$USER to force a new cache after installing the corrected version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment