createrepo.bash
[email protected] (Ville Skytt??) Fri, 10 Jan 2014 13:05:22 +0000 (UTC)
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
--===============8723409072002897322== Content-Type: text/plain createrepo.bash | 7 +++++++ 1 file changed, 7 insertions(+) New commits: commit 80b42059f29bf9029d6ff9cf591bb3d1e4f667cd Author: Ville Skyttä <[email protected]> Date: Fri Jan 10 15:05:01 2014 +0200 completion: Fix file/dir completions for names containing spaces or tabs diff --git a/createrepo.bash b/createrepo.bash index 14b43d8..b4999ed 100644 --- a/createrepo.bash +++ b/createrepo.bash @@ -22,10 +22,12 @@ _cr_createrepo() ;; --basedir|-c|--cachedir|--update-md-path|-o|--outputdir|\ --oldpackagedirs) + local IFS=$'\n' COMPREPLY=( $( compgen -d -- "$2" ) ) return 0 ;; -g|--groupfile) + local IFS=$'\n' COMPREPLY=( $( compgen -f -o plusdirs -X '!*.xml' -- "$2" ) ) return 0 ;; @@ -34,10 +36,12 @@ _cr_createrepo() return 0 ;; -i|--pkglist|--read-pkgs-list) + local IFS=$'\n' COMPREPLY=( $( compgen -f -o plusdirs -- "$2" ) ) return 0 ;; -n|--includepkg) + local IFS=$'\n' COMPREPLY=( $( compgen -f -o plusdirs -X '!*.rpm' -- "$2" ) ) return 0 ;; @@ -71,6 +75,7 @@ _cr_createrepo() --revision --deltas --oldpackagedirs --num-deltas --read-pkgs-list --max-delta-rpm-size --workers --compress-type' -- "$2" ) ) else + local IFS=$'\n' COMPREPLY=( $( compgen -d -- "$2" ) ) fi } && @@ -85,6 +90,7 @@ _cr_mergerepo() return 0 ;; -r|--repo|-o|--outputdir) + local IFS=$'\n' COMPREPLY=( $( compgen -d -- "$2" ) ) return 0 ;; @@ -132,6 +138,7 @@ _cr_modifyrepo() fi done + local IFS=$'\n' case $argnum in 1) COMPREPLY=( $( compgen -f -o plusdirs -- "$2" ) ) --===============8723409072002897322== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Rpm-metadata mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/rpm-metadata --===============8723409072002897322==--