Complete on installed packages, dirs and *.rpm, *.spec only.

git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1489 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
Ville Skyttä 2009-01-14 20:37:51 +00:00
parent b14fb7a039
commit 042918437c
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ _rpmlint()
-E --extractdir -p --profile -V --version -n \
--noexception -f --file' -- $cur ) )
else
_filedir
type _rpm_installed_packages &>/dev/null && \
_rpm_installed_packages
_filedir '@(rpm|spec)'
fi
}
complete -F _rpmlint $filenames rpmlint